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.

Specifications

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

Usage (according to Chrome Platform Status)

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