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:
21
react-app/node_modules/lodash/internal/createFindIndex.js
generated
vendored
Normal file
21
react-app/node_modules/lodash/internal/createFindIndex.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
Reference in New Issue
Block a user