Splits the input array up into an subset arrays of equal size
array
(Array): input array[size=1]
(number): size of each chunk
(Array): array of chunk arrays
const result = arrays.chunk([1, 2, 3, 4, 5], 2);
console.log(result);
> [[1, 2], [3, 4], [5]]