🌈 搜索
📅  最后修改于: 2022-03-11 15:02:27.605000             🧑  作者: Mango
myArr.reduce((rows, key, index) => (index % 3 == 0 ? rows.push([key]) : rows[rows.length-1].push(key)) && rows, []);