Comment

Comment by leosanchez

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).

parent leosanchez 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton