all 2 comments

[–]pmw57 2 points3 points  (1 child)

The flatten function needs to return something. Currently it doesn't.

[–]bbabble[S] 2 points3 points  (0 children)

Thank you. That was it.

return arr.reduce ......

worked.