I don't specifically have an exact use case but I can definitely think of some use cases for them. However, if these sorts of functions also work for array iterators then a reverse entries functions should suffice.

Sebastian 

Sent: August 4, 2017 2:26 PM
Subject: Re: Array findLast() and findLastIndex()

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 <[email protected]> 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
[email protected]
https://mail.mozilla.org/listinfo/es-discuss


_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to