I have a simple app using Express and Node (v12.13.0 on windows). I found that I can not add anything to Set.
I tired to add different type of objects in it but not working at all.
Object.prototype.toString.call(aSet)
outputs "[object Set]":
let users = new Set();
users.add('1');
console.log('users: ' + JSON.stringify(users));
The above outputs {}
, an empty object, despite the fact that the Set has items in it.