数组去重 random 2021-01-11 91 阅读1分钟 arr.reduce((acc, cur) => { if (!(acc.includes(cur))) { acc.push(cur) } return acc }, [])