mirror of
https://gitverse.ru/kpa39l/telepost.git
synced 2026-09-29 18:05:08 +00:00
Initial commit
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 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]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user