Set methods
Newly available since 2024-06-11
The difference()
, intersection()
, isDisjointFrom()
, isSubsetOf()
, isSupersetOf()
, symmetricDifference()
, and union()
methods of the JavaScript Set
object performs operations between two sets.
Learn more
Specifications
- Set methods, from TC39 (Ecma International).
Browser support
- Chrome 122 Released on 2024-02-20
- Chrome Android 122 Released on 2024-02-20
- Edge 122 Released on 2024-02-23
- Firefox 127 Released on 2024-06-11
- Firefox for Android 127 Released on 2024-06-11
- Safari 17 Released on 2023-09-18
- Safari on iOS 17 Released on 2023-09-18
Developer signals
- State of JS 2024: reading_list/reading_list question
- State of JS 2024: features/set_features question
- State of JS 2024: features/object_features question
Usage (according to Chrome Platform Status)
~3.607% of page loads. More data at chromestatus.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist