DEV Community


Discussion on: Don’t pay the for-loop tax

maxart2501 profile image
Massimo Artizzu

Indeed, but as a reminder there are methods that allow you to "break out" soon looping an array with FP. Namely, find and some are probably the most expressive. (Alas, find isn't supported in IE, not even 11, but OTOH is easily polyfill-able.)