Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements to the proposal Set methods #45

Open
unadlib opened this issue Jun 29, 2024 · 0 comments
Open

Enhancements to the proposal Set methods #45

unadlib opened this issue Jun 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@unadlib
Copy link
Owner

unadlib commented Jun 29, 2024

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 tc39/ecma262#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 unadlib added the enhancement New feature or request label Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant