Chunk array into an array of chunks of given size
array of chunks
this can return partial chunks
chunkArray([1, 2, 3, 4, 5, 6], 3) === [[1, 2, 3], [4, 5, 6]]
chunkArray([1, 2, 3, 4, 5, 6, 7], 3) === [[1, 2, 3], [4, 5, 6], [7]]
array to chunk
number of items in each chunk
Generated using TypeDoc
Chunk array into an array of chunks of given size
Returns
array of chunks
Note
this can return partial chunks
Example
Example