spread.js 234 B

123456789101112
  1. "use strict";
  2. var callable = require("../../object/valid-callable")
  3. , apply = Function.prototype.apply;
  4. module.exports = function () {
  5. var fn = callable(this);
  6. return function (args) {
  7. return apply.call(fn, this, args);
  8. };
  9. };