diff options
Diffstat (limited to 'node_modules/es5-ext/object/is-plain-function.js')
-rw-r--r-- | node_modules/es5-ext/object/is-plain-function.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/node_modules/es5-ext/object/is-plain-function.js b/node_modules/es5-ext/object/is-plain-function.js deleted file mode 100644 index a2f32348a..000000000 --- a/node_modules/es5-ext/object/is-plain-function.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var isClassStr = RegExp.prototype.test.bind(/^\s*class[\s{/}]/) - , fnToString = Function.prototype.toString; - -module.exports = function (fn) { - if (typeof fn !== "function") return false; - if (typeof fn.call !== "function") return false; - if (typeof fn.apply !== "function") return false; - return !isClassStr(fnToString.call(fn)); -}; |