wishthis/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js
2022-04-07 09:06:43 +02:00

15 lines
No EOL
679 B
JavaScript

import { combineLatestInit } from '../observable/combineLatest';
import { operate } from '../util/lift';
import { argsOrArgArray } from '../util/argsOrArgArray';
import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';
import { pipe } from '../util/pipe';
import { popResultSelector } from '../util/args';
export function combineLatest(...args) {
const resultSelector = popResultSelector(args);
return resultSelector
? pipe(combineLatest(...args), mapOneOrManyArgs(resultSelector))
: operate((source, subscriber) => {
combineLatestInit([source, ...argsOrArgArray(args)])(subscriber);
});
}
//# sourceMappingURL=combineLatest.js.map