mirror of https://github.com/sveltejs/svelte
[fix] Maximum call stack size exceeded (#4694)
parent
c040f130b7
commit
3387e22a42
@ -0,0 +1,11 @@
|
|||||||
|
export function push_array(thisArray: any[], ...otherList: any[]) {
|
||||||
|
let count = 0;
|
||||||
|
for (let a = 0; a < otherList.length; a++) {
|
||||||
|
const other = otherList[a];
|
||||||
|
for (let i = 0; i < other.length; i++) {
|
||||||
|
thisArray.push(other[i]);
|
||||||
|
}
|
||||||
|
count += other.length;
|
||||||
|
}
|
||||||
|
return count;
|
||||||
|
}
|
||||||
Loading…
Reference in new issue