aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createFind.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createFind.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createFind.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createFind.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createFind.js
deleted file mode 100644
index 29bf580f..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createFind.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var baseCallback = require('./baseCallback'),
- baseFind = require('./baseFind'),
- baseFindIndex = require('./baseFindIndex'),
- isArray = require('../lang/isArray');
-
-/**
- * Creates a `_.find` or `_.findLast` function.
- *
- * @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new find function.
- */
-function createFind(eachFunc, fromRight) {
- return function(collection, predicate, thisArg) {
- predicate = baseCallback(predicate, thisArg, 3);
- if (isArray(collection)) {
- var index = baseFindIndex(collection, predicate, fromRight);
- return index > -1 ? collection[index] : undefined;
- }
- return baseFind(collection, predicate, eachFunc);
- };
-}
-
-module.exports = createFind;