aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js')
-rw-r--r--node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js b/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js
new file mode 100644
index 0000000..faf7dc7
--- /dev/null
+++ b/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js
@@ -0,0 +1,9 @@
+import { map } from "../operators/map";
+const { isArray } = Array;
+function callOrApply(fn, args) {
+ return isArray(args) ? fn(...args) : fn(args);
+}
+export function mapOneOrManyArgs(fn) {
+ return map(args => callOrApply(fn, args));
+}
+//# sourceMappingURL=mapOneOrManyArgs.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