Hacker News new | ask | show | jobs
by hnedeotes 1848 days 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.