resolveArr(array, len) { let index = 0; let newArray = []; while (index < array.length) { newArray.push(array.slice(index, (index += len))); } return newArray; }