aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js b/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
new file mode 100644
index 0000000..706add1
--- /dev/null
+++ b/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
@@ -0,0 +1,10 @@
+import { __read, __spreadArray } from "tslib";
+import { map } from "../operators/map";
+var isArray = Array.isArray;
+function callOrApply(fn, args) {
+ return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);
+}
+export function mapOneOrManyArgs(fn) {
+ return map(function (args) { return 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