数组和集合 / 无重复集合

//ECMAScript 6 feature
let intSet = new Set([123]);
let strSet = new Set(["one""two""three"]);

console.log(intSet.has(3));
console.log(strSet.has("two"));