▲ | SkiFire13 3 days ago | |
The point should not be using the spread operator at all costs. There are other ways in javascript to push multiple elements in an array that are more efficient than the spread operator. The fact you didn't even stop to wonder why the error was a stack overflow when you weren't using recursive functions is also telling. |