This method is like find except that it iterates over elements of collection from right to left.
find
collection
The collection to inspect.
The function invoked per iteration.
Optional
The index to search from.
Returns the matched element, else undefined.
undefined
2.0.0
find, findIndex, findKey, findLastIndex, findLastKey
findLast([1, 2, 3, 4], n => n % 2 == 1)// => 3 Copy
findLast([1, 2, 3, 4], n => n % 2 == 1)// => 3
This method is like
find
except that it iterates over elements ofcollection
from right to left.