Web features explorer

Set methods

Newly available since 2024-06-11
Tags: javascript Groups: JavaScript > Collections > Sets

The difference(), intersection(), isDisjointFrom(), isSubsetOf(), isSupersetOf(), symmetricDifference(), and union() methods of the JavaScript Set object performs operations between two sets. To learn more, see Set.prototype.difference(), Set.prototype.intersection(), Set.prototype.isDisjointFrom(), Set.prototype.isSubsetOf(), Set.prototype.isSupersetOf(), Set.prototype.symmetricDifference(), Set.prototype.union() at MDN.

Compatibility

Specifications