DEV Community

Discussion on: Speedup your JavaScript code using this for loop.

Collapse
 
srikanth597 profile image
srikanth597

I always thought that for of , for in , forEach are the warppers around the regular for loop.
So to me I always understood that they would take extra time to compute.
But results here shows otherwise.
Interesting.
I can understand exception for forEach loop cause it's callback. But couldn't wrap my head around about other ones.