Given an array arr and a chunk size size, return a chunked array. A chunked array contains the original elements in arr, but consists of subarrays each of length size. The length of the last subarray may be less than size if arr.length is not evenly divisible by size.
Example:
Input: arr = [1,2,3,4,5], size = 1
Output: [[1],[2],[3],[4],[5]]
Explanation: The arr has been split into subarrays each with 1 element.
On this page of the site you can watch the video online Let's Code - Challenges - Chunk Array with with a duration of hours minute second in good quality, which was uploaded by the user Let's Code Challenges 05 June 2023, share the link with friends and acquaintances, this video has already been watched 46 times on youtube and it was liked by 0 viewers. Enjoy your viewing!