1、ES6 Set 去重
let arr = [1, 2, 2, 3, 4,4, 5,];
let nerarr = Array.from(new Set(arr))
console.log(nerarr ) //[1, 2, 3, 4, 5]
1、ES6 Set 去重
let arr = [1, 2, 2, 3, 4,4, 5,];
let nerarr = Array.from(new Set(arr))
console.log(nerarr ) //[1, 2, 3, 4, 5]