UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

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