_.findLast()
_.findLast(collection, [predicate=_.identity], [fromIndex=collection.length-1])
This method is like _.find
except that it iterates over elements of collection from right to left.
Arguments
collection (Array|Object)
: The collection to inspect.
[iteratee=_.identity] (Function)
: The function invoked per iteration.
[fromIndex=collection.length-1] (number)
: The index to search from.
Returns
(*)
: Returns the matched element, else undefined.