如何使用Set去重

let arr = [12,43,23,43,68,12];
let item = [...new Set(arr)];
console.log(item);//[12, 43, 23, 68]
原文地址:https://www.cnblogs.com/georgexu/p/14045712.html