findLast
_.findLast(predicate, collection)
# Ⓢ [Ⓣ][1] Ⓝ
This method is like _.find except that it iterates over elements of
collection from right to left.
Since
2.0.0
Arguments
predicate(Function): The function invoked per iteration.collection(Array|Object): The collection to inspect.
Returns
(*): Returns the matched element, else undefined.
Example
_.findLast(function(n) {
return n % 2 == 1;
}, [1, 2, 3, 4]);
// => 3