function noRepeat(chooseLists){
let newArr = [...new Set(chooseLists)]; //利用了Set结构不能接收重复数据的特点
return newArr
}
let arr = noRepeat([1, 1, 2, 3, 3, 4])
function noRepeat(chooseLists){
let newArr = [...new Set(chooseLists)]; //利用了Set结构不能接收重复数据的特点
return newArr
}
let arr = noRepeat([1, 1, 2, 3, 3, 4])