Chunk an Array

Arrays ยท easy

Implement `chunk(arr, size)` splitting `arr` into subarrays of length `size` (the last chunk may be shorter).

Learning resources

Loading...

Run your code to see results.