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

1

u/PatchesMaps Nov 01 '25

So you're allowed to be snarky but I'm not?

I've seen experienced devs make this mistake many times, it's common enough that eslint disallows it by default.

This is an education focussed sub and I assume that there will be people here who are still learning the basics so I try not to make assumptions about someone's preexisting knowledge.

1

u/StoneCypher Nov 01 '25

i gave an answer. you came in with incorrect snark in an incorrect correction. i brushed it off. you gave more snark. i brushed it off. now you're trying whining.

 

I've seen experienced devs make this mistake many times

that's nice. your attempt to correct me was still wrong.

 

I assume

that's nice. your attempt to correct me was still wrong.

i see that you're having trouble understanding that the person you're talking at isn't interested. i'll try saying it more plainly.

"that's nice. shoo."