Array.prototype.uniq = function () {
let newArr = [];
for(var i =0;i<this.length;i++){
if(newArr.includes(this[i])){
this.splice(i,1)
i--;
}else{
newArr.push(this[i]);
}
}
return this;
}



京公网安备 11010502036488号