productList = productList.reduce(function (item, next) {
hash[next.name] ? '' : hash[next.name] = true && item.push(next);
return item
}, [])
productList = productList.reduce(function (item, next) {
hash[next.name] ? '' : hash[next.name] = true && item.push(next);
return item
}, [])
本文标题:筛选掉重复的数据
本文链接:https://www.haomeiwen.com/subject/amlbkhtx.html
网友评论