summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/internal/createFindIndex.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/internal/createFindIndex.js')
-rw-r--r--tools/eslint/node_modules/lodash/internal/createFindIndex.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/eslint/node_modules/lodash/internal/createFindIndex.js b/tools/eslint/node_modules/lodash/internal/createFindIndex.js
deleted file mode 100644
index 3947bea9ae..0000000000
--- a/tools/eslint/node_modules/lodash/internal/createFindIndex.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var baseCallback = require('./baseCallback'),
- baseFindIndex = require('./baseFindIndex');
-
-/**
- * Creates a `_.findIndex` or `_.findLastIndex` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new find function.
- */
-function createFindIndex(fromRight) {
- return function(array, predicate, thisArg) {
- if (!(array && array.length)) {
- return -1;
- }
- predicate = baseCallback(predicate, thisArg, 3);
- return baseFindIndex(array, predicate, fromRight);
- };
-}
-
-module.exports = createFindIndex;