#每天一个知识点#
对象数组去重组成新数组:
const map = new Map();
let newArr = arr.filter(v => !map.has(v.id) && map.set(v.id, 1))
评论