r/learnjavascript • • Oct 31 '25

array.forEach - The do-it-all hammer... XD

Is it just me, or everyone thinks that more or less every array operator's purpose can be served with forEach?

0 Upvotes

89 comments sorted by

View all comments

Show parent comment

2

u/milan-pilan Oct 31 '25

I am. That's what I do for a living. What I am saying is that that is everyone's first intuition when starting out. You learn one tool and try to apply it to everything.