diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createExtremum.js')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createExtremum.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createExtremum.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createExtremum.js deleted file mode 100644 index 5c4003e5..00000000 --- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/lodash/internal/createExtremum.js +++ /dev/null @@ -1,33 +0,0 @@ -var arrayExtremum = require('./arrayExtremum'), - baseCallback = require('./baseCallback'), - baseExtremum = require('./baseExtremum'), - isArray = require('../lang/isArray'), - isIterateeCall = require('./isIterateeCall'), - toIterable = require('./toIterable'); - -/** - * Creates a `_.max` or `_.min` function. - * - * @private - * @param {Function} comparator The function used to compare values. - * @param {*} exValue The initial extremum value. - * @returns {Function} Returns the new extremum function. - */ -function createExtremum(comparator, exValue) { - return function(collection, iteratee, thisArg) { - if (thisArg && isIterateeCall(collection, iteratee, thisArg)) { - iteratee = undefined; - } - iteratee = baseCallback(iteratee, thisArg, 3); - if (iteratee.length == 1) { - collection = isArray(collection) ? collection : toIterable(collection); - var result = arrayExtremum(collection, iteratee, comparator, exValue); - if (!(collection.length && result === exValue)) { - return result; - } - } - return baseExtremum(collection, iteratee, comparator, exValue); - }; -} - -module.exports = createExtremum; |