Creates an array of elements split into groups of length size. If array can't be split evenly, the final chunk will be the remaining elements.
size
Type of the array elements.
array
The array to process.
The length of each chunk.
The new array of chunks.
Generated using TypeDoc
Creates an array of elements split into groups of length
size
. If array can't be split evenly, the final chunk will be the remaining elements.