数组对象按某属性去重
数组对象按某属性去重
uniqueFun(arr, type) { const res = new Map(); return arr.filter((a) => !res.has(a[type]) && res.set(a[type], 1)); },
var alllist = that.uniqueFun(that.data.allList.concat(newarr).reverse(),"CheckType")
数组对象按某属性去重
uniqueFun(arr, type) { const res = new Map(); return arr.filter((a) => !res.has(a[type]) && res.set(a[type], 1)); },