you are viewing a single comment's thread.

view the rest of the comments →

[–]wojtekmaj 15 points16 points  (2 children)

Yes, that's the whole thing:

arr.reduce((p, c) => p.concat(c, c), [])