数组合并去重2023-10-23 23:22:28 this.newArr.push(...that.selectedMergePackListThree1) // 去重 const id = ‘id‘ const r = that.newArr.reduce((all, next) => all.some((atom) => atom[id] == next[id]) ? all : [...all, next], []) that.newArr = r 数组合并去重上一篇:java嵌套集合的一个小坑,list.add(list)的问题下一篇:Java初学