mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
20
react-app/node_modules/lodash/internal/createSortedIndex.js
generated
vendored
Normal file
20
react-app/node_modules/lodash/internal/createSortedIndex.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var baseCallback = require('./baseCallback'),
|
||||
binaryIndex = require('./binaryIndex'),
|
||||
binaryIndexBy = require('./binaryIndexBy');
|
||||
|
||||
/**
|
||||
* Creates a `_.sortedIndex` or `_.sortedLastIndex` function.
|
||||
*
|
||||
* @private
|
||||
* @param {boolean} [retHighest] Specify returning the highest qualified index.
|
||||
* @returns {Function} Returns the new index function.
|
||||
*/
|
||||
function createSortedIndex(retHighest) {
|
||||
return function(array, value, iteratee, thisArg) {
|
||||
return iteratee == null
|
||||
? binaryIndex(array, value, retHighest)
|
||||
: binaryIndexBy(array, value, baseCallback(iteratee, thisArg, 1), retHighest);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = createSortedIndex;
|
Reference in New Issue
Block a user