-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I would suggest the following equals method
equals: function equals(otherSet){
//if (!otherSet instanceof Set){return false;} //comment out for typecheck
var otherKeys = Object.keys(otherSet._values).sort();
var myKeys = Object.keys(this._values).sort();
return JSON.stringify(otherKeys) === JSON.stringify(myKeys);
}
Metadata
Metadata
Assignees
Labels
No labels