?
chunk
Summary​
Divides a given array into subarrays of a certain size
Description​
Fields​
array​
The array to be partitioned.
count​
The value that determines the size of the subarray.
step​
The interval between each chunk when splitting the array.
leftover​
Determines how the remaining elements are handled at the end of the chunk.
Helpful?