Naveen Chawla (2017-07-06T13:51:36.000Z)
naveen.chwl at gmail.com (2017-07-06T17:11:01.375Z)
-
naveen.chwl at gmail.com (2017-07-06T17:10:36.800Z)
naveen.chwl at gmail.com (2017-07-06T15:00:46.320Z)
Sebastian, suitable for that would be an "until" function that returns an array with all elements of the target array until a condition is met (which can then be followed by a chained call to forEach/forEvery), not "forEach" / "forEvery" as such. Reason: readability. The counterpart could be an "after" function which returns an array with all elements after the first element that satisfies a condition. (Maybe even "untilInclusive"/"from" for the inclusive versions too).