3 ms·
Probably to make a distinction between map() which returns a new array. If forEach returned the same array I believe you'd would see a lot more bugs.
by brad0 9y ago
Probably to make a distinction between map() which returns a new array. If forEach returned the same array I believe you'd would see a lot more bugs.