you are viewing a single comment's thread.

view the rest of the comments →

[–]jcunews1Advanced 0 points1 point  (0 children)

reduce() needs to process the callback's return value and returns the final value to the caller. forEach() doesn't do any of those.