re: Don’t pay the for-loop tax VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I think the only argument for using a a for-loop is to break out of the loop. I think pretty much everything else can be done using the functional ...
 

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.)

code of conduct - report abuse