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...