DEV Community

Discussion on: forEach or map ?

Collapse
 
ifarmgolems profile image
Patrik Jajcay

Map for immutable new array, forEach for mutations / side effects.