Skip to content

ESNext Set methods #58329

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

Closed
Renegade334 opened this issue Apr 26, 2024 · 1 comment
Closed

ESNext Set methods #58329

Renegade334 opened this issue Apr 26, 2024 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@Renegade334
Copy link
Contributor

⚙ Compilation target

esnext

⚙ Library

esnext

Missing / Incorrect Definition

The ES2025 Set.prototype methods proposal has now reached Stage 4, and has been rolled out in V8 and javascriptcore.

Sample Code

const a = new Set([1,2,3]), b = new Set([2,3,4]);

a.union(b);
a.intersection(b);
a.difference(b);
a.symmetricDifference(b);
a.isSubsetOf(b);
a.isSupersetOf(b);
a.isDisjointFrom(b);

Documentation Link

https://tc39.es/proposal-set-methods/

@IllusionMH
Copy link
Contributor

Duplicate of #57228

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Apr 26, 2024
@Renegade334 Renegade334 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants