📅  最后修改于: 2022-03-11 15:04:07.059000             🧑  作者: Mango
代码示例6
let arr = [1, 7, 8, 9, 10, 20, 33, 0, 20, 7, 1]
console.log([... new Set(arr)]
// Output : [1, 7, 8, 9, 10, 20, 33, 0]