Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Max Call Stack Size Exceeded Issue
* There can be issues with very large arrays when using `Array.push()` in conjunction with the spread operator. Specifically, it results in every element in the original array being pushed onto the call stack. Once the array gets huge, it will eventually result in the dreaded "Maximum call stack size exceeded" error. The fix for this is fairly simple: don't use the spread operator with `Array.push()`. * To fix, I've simply replaced the spread operator with a simple `for` loop, which solves the issue.
- Loading branch information