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