re: Please don't "overchain" array methods VIEW POST

TOP OF THREAD FULL DISCUSSION
re: JSPerf is down atm, but i'm pretty sure this is faster and easier to read: const nums = [ -2, -1, 0, 1, 2 ] var sum = 0; for(var i = 0; i < nu...
 

I mean... yes, it definitely is, but the point of my article is not to promote the most performant code; rather, the point of this article is to remind the reader to be wary of "overchaining" array methods because of its implications on the number of array iterations. 😅

code of conduct - report abuse