3 ms·
Technically you would use Array.forEach(e => f(e)) If you don't care about transformations. Which is basically the same as your for Map is when you want to
by hnedeotes 5y ago
Technically you would use
Array.forEach(e => f(e))
If you don't care about transformations. Which is basically the same as your for
Map is when you want to return a new collection with each original item in it mapped to a "different" thing.