median_user@lemmy.onetoProgramming@programming.dev•Union, intersection, difference, and more are coming to JavaScript Sets
5·
9 months agoSets 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.
Missed opportunity to call it a premake