function chunk(arr, size) { var arr2=[]; for(var i=0;i<arr.length;i=i+size){ arr2.push(arr.slice(i,i+size)); } return arr2; } let tableList = [ { name:'iu' }, { name:'iu1' }, { name:'iu2' }, { name:'iu3' }, { name:'iu4' }, { name:'iu5' }, { name:'iu6' }, ] let reverse = chunk(tableList, 3) console.log(reverse[0]) console.log(reverse[1]) console.log(reverse[2])