DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
331 Bytes
/**
* 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]);
}
}