Chunks an array into smaller arrays of a specified size.
This function splits a large array into smaller sub-arrays, each containing
up to the specified number of elements. If the original array can't be
evenly divided, the last chunk will contain the remaining elements.
Chunks an array into smaller arrays of a specified size.
This function splits a large array into smaller sub-arrays, each containing up to the specified number of elements. If the original array can't be evenly divided, the last chunk will contain the remaining elements.