DEV Community

Discussion on: Javascript - forEach vs map method in Arrays

Collapse
 
raddevus profile image
raddevus

That's a nice article on a topic that needed to be written up (forEach v map).
Very nice that you provided actual reasons for using one or the other. I notice that a lot of people just use map() because it is the newest and shiniest, but forEach() still has its place. 👍🏽

Collapse
 
shikharsaxena98 profile image
Shikhar Saxena

Thank you for the support :)