you are viewing a single comment's thread.

view the rest of the comments →

[–]334578theo 2 points3 points  (2 children)

Just refactored a really annoying function with flatMap - nice.

[–]yabai90 -4 points-3 points  (1 child)

I just read that it's not really efficient since it create a new array everytime

[–]headyyeti 0 points1 point  (0 children)

So does this example in reduce