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 | |
---|
1 | import { isArray } from '../util/isArray';
|
---|
2 | import { CombineLatestOperator } from '../observable/combineLatest';
|
---|
3 | import { from } from '../observable/from';
|
---|
4 | const none = {};
|
---|
5 | export 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.