pairs
Convert an object into an observable sequence of [key, value] pairs using an optional Scheduler
to enumerate the object.
Arguments
obj
(Object): The object to inspect and turn into an Observable sequence.[scheduler]
(Scheduler
): Scheduler to run the enumeration of the input sequence on. If not specified, defaults toRx.Scheduler.currentThread
Returns
(Observable
): An observable sequence of [key, value] pairs from the object.
Example
ES6 makes for an even nicer experience such as:
Last updated
Was this helpful?