Array findLast() and findLastIndex()

Jordan Harband ljharb at
Fri Aug 4 18:26:13 UTC 2017

indexOf and reduce are the only iteration methods that have "reverse"
versions - I think to add any others, a clear case would have to be made
that *all* of them shouldn't get the same treatment.

What's your use case?

On Fri, Aug 4, 2017 at 11:19 AM, Sebastian Malton <sebastian at>

> This function would be like find but would iterate from back to front. We
> already have find/findIndex but unlike indexOf they don't have a last
> counterpart.
> Sebastian
> _______________________________________________
> es-discuss mailing list
> es-discuss at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list