3 ms·
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
by scottmf 9y 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.