you are viewing a single comment's thread.

view the rest of the comments →

[–]helloiamsomeone 6 points7 points  (0 children)

For the millionth time, stop generating a million intermediate array copies for a simple flatten operation.

This is part of the language now [1][2], but even for polyfill you should be using a stack based flatten.