Union, intersection, difference, and more are coming to JavaScript Sets
The JavaScript Set was introduced to the language in the ES2015 spec, but it has always seemed incomplete. That's about to change with the addition of functions like intersection, union and difference.
You're viewing a single thread.
This seems like a nice feature. Python has sets like this too, and it's super useful.