Slices an array into a set of smaller arrays no larger than chunkSize. The last array to be generated may be shorter than the others, equal in length to the remainder of array.length / chunkSize.
chunkSize
array.length / chunkSize
Slices an array into a set of smaller arrays no larger than
chunkSize
. The last array to be generated may be shorter than the others, equal in length to the remainder ofarray.length / chunkSize
.