You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
362 B

## Chunky
5 years ago
### Instructions
5 years ago
Create the `chunk` function which has as parameters an `array` that will be split and an `integer` which is the size that the array should be split.
5 years ago
The function will return an array of elements divided into groups of the length of the given size.
If the array cannot be split evenly, the final part will be the remaining elements.