DEV Community

Discussion on: Stop abusing .map()!

Collapse
 
davidmaxwaterman profile image
Max Waterman

I guess incorrect use of Map is really only an issue if it is harming the app performance.

I think it's more of an issue on developer performance - ie the word 'map' has a meaning that the developer understands, and if they read 'map', the notice that the results of the map are thrown away, it leads to a brain fart (aka 'wtf?'). forEach has no such smell.