PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
rxjs
/
_esm2015
/
internal
/
observable
import { Observable } from '../Observable'; import { Subscription } from '../Subscription'; export function pairs(obj, scheduler) { if (!scheduler) { return new Observable(subscriber => { const keys = Object.keys(obj); for (let i = 0; i < keys.length && !subscriber.closed; i++) { const key = keys[i]; if (obj.hasOwnProperty(key)) { subscriber.next([key, obj[key]]); } } subscriber.complete(); }); } else { return new Observable(subscriber => { const keys = Object.keys(obj); const subscription = new Subscription(); subscription.add(scheduler.schedule(dispatch, 0, { keys, index: 0, subscriber, subscription, obj })); return subscription; }); } } export function dispatch(state) { const { keys, index, subscriber, subscription, obj } = state; if (!subscriber.closed) { if (index < keys.length) { const key = keys[index]; subscriber.next([key, obj[key]]); subscription.add(this.schedule({ keys, index: index + 1, subscriber, subscription, obj })); } else { subscriber.complete(); } } } //# sourceMappingURL=pairs.js.map
[-] zip.js.map
[edit]
[-] concat.js
[edit]
[-] fromEventPattern.js
[edit]
[-] combineLatest.js
[edit]
[-] using.js
[edit]
[-] fromArray.js.map
[edit]
[-] generate.js
[edit]
[-] generate.js.map
[edit]
[+]
dom
[+]
..
[-] defer.js
[edit]
[-] ConnectableObservable.js
[edit]
[-] concat.js.map
[edit]
[-] from.js.map
[edit]
[-] range.js.map
[edit]
[-] merge.js.map
[edit]
[-] bindCallback.js
[edit]
[-] forkJoin.js.map
[edit]
[-] bindNodeCallback.js.map
[edit]
[-] SubscribeOnObservable.js
[edit]
[-] interval.js
[edit]
[-] fromPromise.js.map
[edit]
[-] of.js
[edit]
[-] ConnectableObservable.js.map
[edit]
[-] throwError.js.map
[edit]
[-] iif.js
[edit]
[-] timer.js.map
[edit]
[-] merge.js
[edit]
[-] bindCallback.js.map
[edit]
[-] onErrorResumeNext.js
[edit]
[-] onErrorResumeNext.js.map
[edit]
[-] partition.js
[edit]
[-] never.js.map
[edit]
[-] fromPromise.js
[edit]
[-] pairs.js
[edit]
[-] timer.js
[edit]
[-] interval.js.map
[edit]
[-] zip.js
[edit]
[-] iif.js.map
[edit]
[-] fromArray.js
[edit]
[-] race.js
[edit]
[-] range.js
[edit]
[-] race.js.map
[edit]
[-] forkJoin.js
[edit]
[-] bindNodeCallback.js
[edit]
[-] throwError.js
[edit]
[-] fromEvent.js
[edit]
[-] empty.js.map
[edit]
[-] defer.js.map
[edit]
[-] SubscribeOnObservable.js.map
[edit]
[-] empty.js
[edit]
[-] pairs.js.map
[edit]
[-] fromIterable.js.map
[edit]
[-] never.js
[edit]
[-] fromEventPattern.js.map
[edit]
[-] combineLatest.js.map
[edit]
[-] partition.js.map
[edit]
[-] using.js.map
[edit]
[-] fromEvent.js.map
[edit]
[-] of.js.map
[edit]
[-] from.js
[edit]
[-] fromIterable.js
[edit]