Array findLast() and findLastIndex()
ljharb at gmail.com
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 malton.name>
> 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
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss