foxts
Version:
Opinionated collection of common TypeScript utils by @SukkaW
1 lines • 154 B
JavaScript
;exports.chunk=function(t,e){const r=Math.ceil(t.length/e),c=Array(r);let n=0,l=0;for(let s=0;s<r;s++)l=(n=s*e)+e,c[s]=t.slice(n,l);return c};
Opinionated collection of common TypeScript utils by @SukkaW