param arr param chunkSize export function chunkArray < T > ( arr , chunkSize ) { return arr . length ? [ arr . slice ( 0 , chunkSize ) , ... chunkArray ( arr . slice ( chunkSize ) , chunkSize ) ] : [ ] ; }