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

Open link in next tab

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

https://www.sonarsource.com/blog/union-intersection-difference-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.

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