在node.js中使用Set

var set = new Set();
set.add();
console.log("test1 : " + set.has() + " ; " + set.has());
set.add();
console.log("test2 : " + set.keys() + " , " + set.values() + " , " + set.entries());
set.delete();
console.log("test3 : " + set.has() + " ; " + set.has());

参考链接:https://blog.csdn.net/zdhsoft/article/details/54343212