The array to be chunked.
The size of each chunk.
An array of arrays, where each sub-array is a chunk of the specified size.
This utility is useful for processing large arrays in smaller, manageable pieces, such as when handling pagination or batching operations. It can help improve performance and reduce memory usage by avoiding operations on very large arrays at once.
Splits an array into chunks of a specified size.