Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / baseIsFunction.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/baseIsFunction.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/baseIsFunction.js
new file mode 100644 (file)
index 0000000..cd92db3
--- /dev/null
@@ -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;