DEV Community

Discussion on: Stop abusing .map()!

Collapse
 
pitops profile image
Petros Kyriakou

I think the main point here is that .map() is used to do a transformation on the data and return that as a new array.

it should not be considered a loop mechanism.