SOURCE

let arr = [1,2,2,3,4,3,4,5]
let set = new Set(arr)
set.add('666666')
// let arrObj = [{name:'lxh',age:18},{name:'lxh',age:18}]
// let objSet = new Set(arrObj)
// console.log('set.delete(1)=',set.delete(1))
// console.log('set.delete(0)=',set.delete(0))

console.log('set===',set)
// console.log('set.has===',set.has(4))
// console.log('objSet===',objSet)

// let set = new Set();
// let a = NaN;
// let b = NaN;
// set.add(a);
// set.add(b);
// console.log('set===',set)

// let arrTest = Array.from({length:10})
// console.log('arrTest==',arrTest)
console 命令行工具 X clear

                    
>
console