1.数组去重
const newArr= new Set(array);
2.set类型转换为数组
Array.from(newArr)
连写
const newArr= Array.from(new Set(array));