PHP
·
发表于 5年以前
·
阅读量:8283
let a = [0,0,1,0,1,0,0,1,1,1,2,3,4,5,3,2,1];
let b = [... new Set(a)];
console.log(b); //[0,1,2,3,4,5]