UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

2 lines (1 loc) 240 B
function e(e,p){let l=0,r=p.length;if(r<=65535)e.push.apply(e,p);else for(;r>0;){let a=r>65535?65535:r,n=p.slice(l,l+a);e.push.apply(e,n),r-=a,l+=a}return e}let p=p=>l=>e(p,l);export{e as appendArrayInPlace,p as appendArrayInPlaceCurried};