Tell us what’s happening:
The code is to Write a function that splits an array (first argument) into groups the length of
size (second argument) and returns them as a two-dimensional array.
When debugging, the arrays are generated as they should initially, then plushed to the output array (empty array), but every step towards the complete output array with the “next” pushed array, the entire set of arrays in the output array becomes the next array.
example based on below code. First loop builds out newArr[0,1,2]
on second round through loop, newArr[[3,4,5],[3,4,5]]
**Your code so far**