source: trip-planner-front/node_modules/rxjs/_esm5/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: 855 bytes
Line 
1/** PURE_IMPORTS_START _util_isArray,_observable_combineLatest,_observable_from PURE_IMPORTS_END */
2import { isArray } from '../util/isArray';
3import { CombineLatestOperator } from '../observable/combineLatest';
4import { from } from '../observable/from';
5var none = {};
6export function combineLatest() {
7 var observables = [];
8 for (var _i = 0; _i < arguments.length; _i++) {
9 observables[_i] = arguments[_i];
10 }
11 var project = null;
12 if (typeof observables[observables.length - 1] === 'function') {
13 project = observables.pop();
14 }
15 if (observables.length === 1 && isArray(observables[0])) {
16 observables = observables[0].slice();
17 }
18 return function (source) { return source.lift.call(from([source].concat(observables)), new CombineLatestOperator(project)); };
19}
20//# sourceMappingURL=combineLatest.js.map
Note: See TracBrowser for help on using the repository browser.