Error .chunk method in library lodash

Hi guys, can you help me why my code does not run


Can you copy/paste you code here (format it with </>).

The simple answer from looking at it is that something is not working as intended in your loops. The expected output in the error message should clarify what it wants you to return a little more. I would play around with adding log statements that print all the relevant info you need to troubleshoot this.

< chunk:function(arr,size){

if (!size){

size = 1;


for (let i = 0; i < arr.length; i+= size){

let newArrayChunk = arr.slice(i,i+ size );


return newArrayChunk