Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/inquirer/node_modules/lodash/internal/baseIsFunction.js')
-rw-r--r--tools/eslint/node_modules/inquirer/node_modules/lodash/internal/baseIsFunction.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/eslint/node_modules/inquirer/node_modules/lodash/internal/baseIsFunction.js b/tools/eslint/node_modules/inquirer/node_modules/lodash/internal/baseIsFunction.js
new file mode 100644
index 00000000000..cd92db30f32
--- /dev/null
+++ b/tools/eslint/node_modules/inquirer/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;