foxts
Version:
Opinionated collection of common TypeScript utils by @SukkaW
1 lines • 248 B
JavaScript
;function e(e,p){let r=0,n=p.length;if(n<=65535)e.push.apply(e,p);else for(;n>0;){const s=n>65535?65535:n,t=p.slice(r,r+s);e.push.apply(e,t),n-=s,r+=s}return e}exports.appendArrayInPlace=e,exports.appendArrayInPlaceCurried=p=>r=>e(p,r);