Write chunks(items, size) that splits the list into pieces of size (the last piece may be shorter): chunks([1,2,3,4,5], 2) → [[1,2],[3,4],[5]].
chunks([1, 2, 3, 4, 5], 2) → [[1, 2], [3, 4], [5]]
chunks([], 3) → []
Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.