diff options
Diffstat (limited to 'node_modules/es5-ext/function/is-function.js')
-rw-r--r-- | node_modules/es5-ext/function/is-function.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/es5-ext/function/is-function.js b/node_modules/es5-ext/function/is-function.js new file mode 100644 index 000000000..d3d92f4ed --- /dev/null +++ b/node_modules/es5-ext/function/is-function.js @@ -0,0 +1,7 @@ +"use strict"; + +var objToString = Object.prototype.toString, id = objToString.call(require("./noop")); + +module.exports = function (value) { + return typeof value === "function" && objToString.call(value) === id; +}; |