public/subjects/chunky
davhojt 73f49f0b23 docs(chunky): correct grammar 2022-05-31 08:27:51 +02:00
..
README.md docs(chunky): correct grammar 2022-05-31 08:27:51 +02:00

README.md

Chunky

Instructions

Create a function named chunk which accepts an array and an integer representing a size.

Your function will chunk the array into sub-arrays, and return an array with each sub-array as its elements. The length of each sub-array is denoted by the size argument.

If the array cannot be split evenly, the last sub-array will contain the remaining elements.