Author: szn0007
Category: Coding Challenge, Data Structures and Algorithm, Programming

Chunk Algorithm

Write a function that splits an array (first argument) into groups the length of size (second argument) andreturns them as a two-dimensional array. Example:chunk(, 2) ==> , ]chunk(, 4) ==> , ] const chunk = (array, size) => { const...