Agree, Set is a disappointment.
I think the “Why” is because it’s easier to get everyone to sign off on small changes than large changes that can never be removed.
The web platform has to live for a long time and be backwards compatible.
I think the “Why” is because it’s easier to get everyone to sign off on small changes than large changes that can never be removed.
The web platform has to live for a long time and be backwards compatible.
http://2ality.com/2015/01/es6-set-operations.html
> Long-term, I expect JavaScript to have built-in functionality for this, e.g. via functions that operate on iterables