"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapOneOrManyArgs = void 0;
const map_js_1 = require("../operators/map.js");
const { isArray } = Array;
function callOrApply(fn, args) {
    return isArray(args) ? fn(...args) : fn(args);
}
function mapOneOrManyArgs(fn) {
    return (0, map_js_1.map)((args) => callOrApply(fn, args));
}
exports.mapOneOrManyArgs = mapOneOrManyArgs;