3 ms·
I think Array.forEach(...) is the more apt analog there as it wouldn't be generating a new array of the return like map would.
by lkschubert8 5y ago
I think
Array.forEach(...)
is the more apt analog there as it wouldn't be generating a new array of the return like map would.
- edgyquant 5y agoMaybe, I only went with map since it was in the GP.