同一个数组查重
时间:2020-07-22 19:03:08
收藏:0
阅读:76
let array=[1,2,5,4,1,2]
array.forEach((ele,index)=> {
if(array.indexOf(ele) !== index){
console.log(ele)
}
})
原文:https://www.cnblogs.com/wssdx/p/13362164.html
评论(0)