mutative icon indicating copy to clipboard operation
mutative copied to clipboard

Enhancements to the proposal Set methods

Open unadlib opened this issue 1 year ago • 0 comments

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.

Check compatibility

unadlib avatar Jun 29 '24 19:06 unadlib