DEV Community

Discussion on: Is reduce() bad?

Collapse
 
vonheikemen profile image
Heiker

But it is also difficult to understand a reduce method that's doing 3+ things in one function

I get it. It happens. But do you think is easier to read a for block that is doing 3+ things?

Thread Thread
 
jasterix profile image
Jasterix

For me, the simple fact that I learned for loops first has meant that my brain defaults to it. I'm more fluent with for loops. So any other syntax means having to "translate".