ES6 集合 Set 方法 has()
ES6 集合 Set 方法 has()
var mySet = new Set();
mySet.add("Jim");
console.log(mySet.has("Jim"));
console.log(mySet.has("Tom"));
var mySet = new Set();
mySet.add("Jim");
console.log(mySet.has("Jim"));
console.log(mySet.has("Tom"));