Back to home
Version: 0.0.1
Last Updated: Unknown
Given an array and chunk size, divide the array into many subarrays where each subarray is of length size.
chunk([1, 2, 3, 4], 2); // returns [[1,2], [3,4]]copy
chunk([1, 2, 3, 4], 2); // returns [[1,2], [3,4]]