1 var baseEachRight = require('../internal/baseEachRight'),
2 createFind = require('../internal/createFind');
5 * This method is like `_.find` except that it iterates over elements of
6 * `collection` from right to left.
10 * @category Collection
11 * @param {Array|Object|string} collection The collection to search.
12 * @param {Function|Object|string} [predicate=_.identity] The function invoked
14 * @param {*} [thisArg] The `this` binding of `predicate`.
15 * @returns {*} Returns the matched element, else `undefined`.
18 * _.findLast([1, 2, 3, 4], function(n) {
23 var findLast = createFind(baseEachRight, true);
25 module.exports = findLast;