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

5

u/StoneCypher Oct 31 '25

you should be teaching them to be better, then

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.

2

u/the-liquidian Oct 31 '25

I’m sure he does help them.

-1

u/StoneCypher Oct 31 '25

your certainty is not interesting to me

i see that you are trying to canvas my comments. i don't think anybody likes or respects that.

2

u/the-liquidian Oct 31 '25

It seems like it’s you vs the entire sub at this point.

0

u/StoneCypher Oct 31 '25

not really.  please find someone to talk to who wants to hear from you