UNPKG

wed

Version:

Wed is a schema-aware editor for XML documents.

27 lines (24 loc) 962 B
define(function(require,exports,module){ import { isArray } from '../util/isArray'; import { CombineLatestOperator } from '../observable/combineLatest'; import { from } from '../observable/from'; const none = {}; /* tslint:enable:max-line-length */ /** * @deprecated Deprecated in favor of static combineLatest. */ export function combineLatest(...observables) { let project = null; if (typeof observables[observables.length - 1] === 'function') { project = observables.pop(); } // if the first and only other argument besides the resultSelector is an array // assume it's been called with `combineLatest([obs1, obs2, obs3], project)` if (observables.length === 1 && isArray(observables[0])) { observables = observables[0].slice(); } return (source) => source.lift.call(from([source, ...observables]), new CombineLatestOperator(project)); } //# sourceMappingURL=combineLatest.js.map return module.exports; });