📜  用数组 javascript 代码示例初始化集合

📅  最后修改于: 2022-03-11 15:02:37.150000             🧑  作者: Mango

代码示例1
var arr = [55, 44, 65];
var set = new Set(arr);
console.log(set.size === arr.length);
console.log(set.has(65));