combineLatestObj
for RxJS
npm install rx-combine-latest-obj
Usage
Given these observables:
const a$ = RxObservable;const b$ = RxObservable;const c$ = RxObservable;
Make an observable which is the combination of them, bundled as an object.
; const state$ = ;// or const state$ = combineLatestObj({a: a$, b: b$, c: c$}); state$;// {a: 0, b: 'Boston', c: 'Colorado'}// {a: 1, b: 'Boston', c: 'Colorado'}// {a: 2, b: 'Boston', c: 'Colorado'}
It takes Cycle.js' hungarian notation $
into consideration, returning an object whose keys don't have the $.
The above is more convenient than writing:
var stateAlt$ = RxObservable;