DEV Community

loading...

Discussion on: Stop using for loops. Here's why.

Collapse
matgott profile image
matgott • Edited

The problem isn't the "different array implementations", title is the problem. Is intentionally bad to attract views, but send a wrong message.

.filter, .map, .sort are usefull tools, but FOR is better in terms of performarce. If you have a lot of data to process, FILTER will not be the best choice.

Nobody should stop using for loops.