This method is like find except that it iterates over elements of collection from right to left.
find
collection
The collection to inspect.
Optional
The function invoked per iteration.
The index to search from.
Returns the matched element, else undefined.
undefined
5.2.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.