aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/operators/combineLatest.js')
-rw-r--r--node_modules/rxjs/dist/esm/internal/operators/combineLatest.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js b/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js
new file mode 100644
index 0000000..abed1f5
--- /dev/null
+++ b/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js
@@ -0,0 +1,15 @@
+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 \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage