The following code appears to work as expected (true) in browser, but fails in a brand-new clean node project. Am I missing something?
const Set = require('collections/set');
const myset = new Set(null, function(a, b) {
return a.x == b.x && a.y == b.y;
}, function(object) {
return ''+object.x+'.'+object.y;
});
myset.add({x:0, y:0});
console.log(myset.has({x: 0, y:0}));