9
function getArr(arr, number) {
    let spliceArr = arr.slice(0);
    return Array.from({length: Math.ceil(arr.length/number)}, () => {
        return spliceArr.splice(0, number)
    })
}

嘻倪孢
342 声望24 粉丝

快乐就好!