source: trip-planner-front/node_modules/rxjs/_esm2015/internal/operators/combineLatest.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 623 bytes
Line 
1import { isArray } from '../util/isArray';
2import { CombineLatestOperator } from '../observable/combineLatest';
3import { from } from '../observable/from';
4const none = {};
5export function combineLatest(...observables) {
6 let project = null;
7 if (typeof observables[observables.length - 1] === 'function') {
8 project = observables.pop();
9 }
10 if (observables.length === 1 && isArray(observables[0])) {
11 observables = observables[0].slice();
12 }
13 return (source) => source.lift.call(from([source, ...observables]), new CombineLatestOperator(project));
14}
15//# sourceMappingURL=combineLatest.js.map
Note: See TracBrowser for help on using the repository browser.