summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash/internal/baseIsFunction.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lodash/internal/baseIsFunction.js')
-rw-r--r--deps/npm/node_modules/lodash/internal/baseIsFunction.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/npm/node_modules/lodash/internal/baseIsFunction.js b/deps/npm/node_modules/lodash/internal/baseIsFunction.js
new file mode 100644
index 0000000000..cd92db30f3
--- /dev/null
+++ b/deps/npm/node_modules/lodash/internal/baseIsFunction.js
@@ -0,0 +1,15 @@
+/**
+ * The base implementation of `_.isFunction` without support for environments
+ * with incorrect `typeof` results.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ */
+function baseIsFunction(value) {
+ // Avoid a Chakra JIT bug in compatibility modes of IE 11.
+ // See https://github.com/jashkenas/underscore/issues/1621 for more details.
+ return typeof value == 'function' || false;
+}
+
+module.exports = baseIsFunction;