mutative
mutative copied to clipboard
Enhancements to the proposal Set methods
This is a proposal https://github.com/tc39/proposal-set-methods to add methods like union and intersection to JavaScript's built-in Set class.
It is currently at stage 4: it has been https://github.com/tc39/ecma262/pull/3306. This repository is no longer active.
This would add the following methods:
- Set.prototype.intersection(other)
- Set.prototype.union(other)
- Set.prototype.difference(other)
- Set.prototype.symmetricDifference(other)
- Set.prototype.isSubsetOf(other)
- Set.prototype.isSupersetOf(other)
- Set.prototype.isDisjointFrom(other)
With the support of the latest major browsers, it is necessary for Mutative to support it as well.