Closed Renegade334 closed 2 weeks ago
esnext
The ES2025 Set.prototype methods proposal has now reached Stage 4, and has been rolled out in V8 and javascriptcore.
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);
https://tc39.es/proposal-set-methods/
Duplicate of #57228
⚙ 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
Documentation Link
https://tc39.es/proposal-set-methods/