🌈 搜索
📅  最后修改于: 2022-03-11 15:02:45.959000             🧑  作者: Mango
const secondArray = [1, 2, 3].reduce((acc, item) => { acc.push(1); return acc; }, []); console.log(secondArray);