/** | |
* Does `array.push` for all `items`. Needed because `array.push(...items)` throws | |
* "Maximum call stack size exceeded" when `items` is too big of an array. | |
* | |
* @param {any[]} array | |
* @param {any[]} items | |
*/ | |
export function push_array(array, items) { | |
for (let i = 0; i < items.length; i++) { | |
array.push(items[i]); | |
} | |
} | |