Joined April 2018
·

maple3142

Hsinchu, Taiwan
·
·
·

@andrewjhart I agree that map, filter, reduce, find, ... are useful, but forEach is used to produce side effects. Although I usually use map, filter, reduce, find, ... , I still avoid forEach because it is pointless IMO. When I want to iterate over an array to produce side effects, I will use for-of, or use traditional for if index is needed.

Achievements
1 Karma
0 Total ProTip Views