You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
392 B
10 lines
392 B
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
|