DEV Community

Discussion on: Stop using for loops, here are other cool options

Collapse
lukaszahradnik profile image
Lukáš Zahradník • Edited on

You don't understand. I'm not skeptical at all, I'm using these functions all the time for years now.
I just don't agree with some/most of your points and the whole idea of stop using for loop.
map and filter aren't replacement of for loop, they have specific usecase.

Why would you prefer while over for?