The collection to inspect.
Optional
predicate: stringThe function invoked per iteration.
Optional
fromIndex: numberThe index to search from.
Returns the matched element, else undefined
.
5.2.0
[[find]],[[findIndex]],[[findKey]],[[findLastIndex]],[[findLastKey]]
findLast([1, 2, 3, 4], n => n % 2 == 1)
// => 3
Optional
predicate: ((item) => boolean)Optional
fromIndex: numberOptional
predicate: Partial<T>Optional
fromIndex: numberOptional
predicate: anyOptional
fromIndex: number
This method is like
find
except that it iterates over elements ofcollection
from right to left.