数组合并并且去重的方法 Last updated on January 18, 2023 pm 案例123const a = [1,2,5]const b = [2,3,5,6]//合并a和b并去重 解决方案123const c =[new Set([...a,...b])]console.log(c)//[1, 2, 5, 3, 6] js #js 数组合并并且去重的方法 https://angelaggression.github.io/2023/01/18/数组合并并且去重的方法/ Author BurnedWings Posted on January 18, 2023 Licensed under 数组方法reduce Previous 关于element-ui里的Drawer的样式问题 Next Please enable JavaScript to view the comments