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.

Learning resources on MDN

Browser support

Specifications