Splits an array into smaller arrays of a specified length.
This function takes an input array and divides it into multiple smaller arrays, each of a specified length. If the input array cannot be evenly divided, the final sub-array will contain the remaining elements.
The array to be chunked into smaller arrays.
The size of each smaller array. Must be a positive integer.
A two-dimensional array where each sub-array has a maximum length of size
.
Alias