On Tue, Jul 25, 2017 at 5:06 AM, Naveen Chawla <[email protected]> wrote:
> I would not overload `each` with any early termination, I would probably > have an `Array.prototype.takeWhile` method for that (which returns a new > array taking elements while the return value of the predicate is truthy). > This is for when you don't want to create a new array, for either semantic or memory pressure reasons. -- T.J. Crowder
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

