js filter 数组去重

       let arr = [1, 2, 3, 10, 4, 5, 1, 3, 5];
let stateNumArr = arr.filter((item, index, array) => {
return array.indexOf(item) === index;
});
console.log(stateNumArr);
上一篇:Beta冲刺Day1


下一篇:Mysql Join语法解析与性能分析详解