Web platform 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

Surveys

Usage (according to Chrome Platform Status)

~3.483% of page loads. More data at chromestatus.

Specifications