frontend/.pnpm-store/v3/files/a0/f4145e59fe84dc70887a5141ea90e093d9f7b42be88bc272c8c564eaaaba911ac22df655ada13f07999ade548ab6628b0440359a4db79a3805e34273c96829

15 lines
439 B
Plaintext

"use strict";
var callable = require("../../object/valid-callable")
, aFrom = require("../../array/from")
, defineLength = require("../_define-length")
, apply = Function.prototype.apply;
module.exports = function (/* …args*/) {
var fn = callable(this), args = aFrom(arguments);
return defineLength(function () {
return apply.call(fn, this, args.concat(aFrom(arguments)));
}, fn.length - args.length);
};