Skip to content

Set behavior vary from Browser vs Node? #249

@JSeligstein

Description

@JSeligstein

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}));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions