From 3dc30632755713179f345f4af024bd904c6162d0 Mon Sep 17 00:00:00 2001 From: Michaƫl Zasso Date: Fri, 22 Dec 2017 16:53:42 +0100 Subject: tools: move eslint from tools to tools/node_modules This is required because we need to add the babel-eslint dependency and it has to be able to resolve "eslint". babel-eslint is required to support future ES features such as async iterators and import.meta. Refs: https://github.com/nodejs/node/pull/17755 PR-URL: https://github.com/nodejs/node/pull/17820 Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum --- .../eslint/node_modules/lodash/_setCacheHas.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tools/node_modules/eslint/node_modules/lodash/_setCacheHas.js (limited to 'tools/node_modules/eslint/node_modules/lodash/_setCacheHas.js') diff --git a/tools/node_modules/eslint/node_modules/lodash/_setCacheHas.js b/tools/node_modules/eslint/node_modules/lodash/_setCacheHas.js new file mode 100644 index 0000000000..9a492556e0 --- /dev/null +++ b/tools/node_modules/eslint/node_modules/lodash/_setCacheHas.js @@ -0,0 +1,14 @@ +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +module.exports = setCacheHas; -- cgit v1.2.3