摘要: 原数组 const arr = [1, 1, '1', 17, true, true, false, false, 'true', 'a', {}, {}]; 1.对象属性(indexof) 利用对象属性key排除重复项 遍历数组,每次判断新数组中是否存在该属性,不存在就存储在新数组中 并把数组元素 阅读全文
posted @ 2022-06-21 10:18 Du9191 阅读(8636) 评论(0) 推荐(0) 编辑