Array findLast() and findLastIndex()
Jordan Harband
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>
wrote:
> 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 mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170804/31ba6c07/attachment-0001.html>
More information about the es-discuss
mailing list