DEV Community

Discussion on: I Use For Loops Almost Always In Javascript

Collapse
 
rjbudzynski profile image
rjbudzynski

I added .reduce() to the test, and on a long array it's only about twice as slow as the vanilla for-loop.