easyJavaScript
Chunk Array
Split an array into chunks of given size.
Ensure function signatures match starter code to run test cases.
index.js
Loading...
Test Case #1
Input: [1,2,3,4],2
Expected: [[1,2],[3,4]]
Test Case #1
Input: [1,2,3,4],2
Expected: [[1,2],[3,4]]