aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/function/#/spread.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/function/#/spread.js')
-rw-r--r--node_modules/es5-ext/function/#/spread.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/es5-ext/function/#/spread.js b/node_modules/es5-ext/function/#/spread.js
new file mode 100644
index 000000000..755553b4e
--- /dev/null
+++ b/node_modules/es5-ext/function/#/spread.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var callable = require("../../object/valid-callable")
+
+ , apply = Function.prototype.apply;
+
+module.exports = function () {
+ var fn = callable(this);
+ return function (args) {
+ return apply.call(fn, this, args);
+};
+};