数组内对象去重的方法
// 数组内对象去重方法 arrDeWeighting(arr) { let obj = {}; let peon = arr.reduce((cur, next) => { obj[next.value] ? "" : (obj[next.value] = true && cur.push(next)); return cur; }, []); //设置cur默认类型为数组,并且初始值为空的数组 return peon; },
// 数组内对象去重方法 arrDeWeighting(arr) { let obj = {}; let peon = arr.reduce((cur, next) => { obj[next.value] ? "" : (obj[next.value] = true && cur.push(next)); return cur; }, []); //设置cur默认类型为数组,并且初始值为空的数组 return peon; },