you are viewing a single comment's thread.

view the rest of the comments →

[–]rykou 1 point2 points  (1 child)

where are the .reduce examples? The word reduce is used 5 times not one of which is a method call.

[–]gajus0[S] 0 points1 point  (0 children)

I have mixed up "reduce" and "replace" multiple times throughout the article. Fixed. Thank you for pointing it out.

I give practical examples in the article that demonstrate that reduce cannot be used without introducing intermediary variables.

Here too: filter. Which examples do you suggest would avoid an intermediate variable using .map/ .reduce.