DEV Community

[Comment from a deleted post]
Collapse
 
thecodingalpaca profile image
Carlos Trapet

In some situations we have to consider code readability over to-the-nanosecond performance.
But yeah, it is well known that the classic for-loop outperforms any other loop by a very large margin.