Comment on Union, intersection, difference, and more are coming to JavaScript Sets

<- View Parent
median_user@lemmy.one ⁨8⁩ ⁨months⁩ ago

Sets are super useful for all sorts of stuff where you want the datatype to guarantee there is only one instance of a value in the collection. UI components where you are incrementally adding things to a selection is a great example.

It’s a completely standard feature in many stdlibs and has nothing to with turning JS into a database.

source
Sort:hotnewtop