Javascript Set is the least useful Set there is across languages I have used.
Why won't it work on objects when the language very good for creating objects with any ceremony.
EDIT:
By won't work i mean you are left with reference equality checks which I never felt useful.
Talking about other languages i worked with, In Java and C# you can override equals method in which you specify which property to check equality on, (even python you can do that with __eq__ i think).
Why won't it work on objects when the language very good for creating objects with any ceremony.
EDIT:
By won't work i mean you are left with reference equality checks which I never felt useful.
Talking about other languages i worked with, In Java and C# you can override equals method in which you specify which property to check equality on, (even python you can do that with __eq__ i think).