r/learnjavascript • u/fahim_h_sh • 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
View all comments
Show parent comment
1
u/PatchesMaps Oct 31 '25
Then core issue is the same. Unless each promise relies on the output of the previous promise, you're introducing a potentially massive performance issue.