Y
Hacker News
new
|
ask
|
show
|
jobs
by
scottmf
3084 days ago
The code loops through an array, has side effects and returns nothing so forEach would be more descriptive IMO.
As for simple/readable it’s the same code but s/map/forEach.