DEV Community

Discussion on: forEach or map ?

Collapse
 
notrab profile image
Jamie Barton

Like others have said, they both do very different things. If you don't need to return an array, use forEach :)