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:
25
react-app/node_modules/lodash/collection/findLast.js
generated
vendored
Normal file
25
react-app/node_modules/lodash/collection/findLast.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
var baseEachRight = require('../internal/baseEachRight'),
|
||||
createFind = require('../internal/createFind');
|
||||
|
||||
/**
|
||||
* This method is like `_.find` except that it iterates over elements of
|
||||
* `collection` from right to left.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Collection
|
||||
* @param {Array|Object|string} collection The collection to search.
|
||||
* @param {Function|Object|string} [predicate=_.identity] The function invoked
|
||||
* per iteration.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {*} Returns the matched element, else `undefined`.
|
||||
* @example
|
||||
*
|
||||
* _.findLast([1, 2, 3, 4], function(n) {
|
||||
* return n % 2 == 1;
|
||||
* });
|
||||
* // => 3
|
||||
*/
|
||||
var findLast = createFind(baseEachRight, true);
|
||||
|
||||
module.exports = findLast;
|
Reference in New Issue
Block a user