rx-factory
v1.0.0
Published
Factories for Rx.Observable (rx.js v4)
Downloads
1
Readme
Rx-factory
Factories for Rx.Observable methods of rx.js.
npm i rx-factory -S
import {just, merge, interval} from 'rx-factory'
let source$ = merge([
just(0),
interval(1000)
])
It also provides combine
factory that acts like combineLatest
and also acts like combineLatestObj
if single plain object is passed.
import {just, interval, combine} from 'rx-factory'
let foo$ = interval(1000)
let bar$ = interval(5000)
let source$ = combine({foo$, bar$})
.map(({foo, bar}) => foo + bar)