{
 "compat_features": [
  "javascript.builtins.Set.difference",
  "javascript.builtins.Set.intersection",
  "javascript.builtins.Set.isDisjointFrom",
  "javascript.builtins.Set.isSubsetOf",
  "javascript.builtins.Set.isSupersetOf",
  "javascript.builtins.Set.symmetricDifference",
  "javascript.builtins.Set.union"
 ],
 "description": "The difference(), intersection(), isDisjointFrom(), isSubsetOf(), isSupersetOf(), symmetricDifference(), and union() methods of the JavaScript Set object performs operations between two sets.",
 "description_html": "The <code>difference()</code>, <code>intersection()</code>, <code>isDisjointFrom()</code>, <code>isSubsetOf()</code>, <code>isSupersetOf()</code>, <code>symmetricDifference()</code>, and <code>union()</code> methods of the JavaScript <code>Set</code> object performs operations between two sets.",
 "group": [
  "sets"
 ],
 "kind": "feature",
 "name": "Set methods",
 "spec": [
  "https://tc39.es/ecma262/multipage/keyed-collections.html#sec-properties-of-the-set-prototype-object"
 ],
 "status": {
  "baseline": "low",
  "baseline_low_date": "2024-06-11",
  "by_compat_key": {
   "javascript.builtins.Set.difference": {
    "baseline": "low",
    "baseline_low_date": "2024-06-11",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "127",
     "firefox_android": "127",
     "safari": "17",
     "safari_ios": "17"
    }
   },
   "javascript.builtins.Set.intersection": {
    "baseline": "low",
    "baseline_low_date": "2024-06-11",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "127",
     "firefox_android": "127",
     "safari": "17",
     "safari_ios": "17"
    }
   },
   "javascript.builtins.Set.isDisjointFrom": {
    "baseline": "low",
    "baseline_low_date": "2024-06-11",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "127",
     "firefox_android": "127",
     "safari": "17",
     "safari_ios": "17"
    }
   },
   "javascript.builtins.Set.isSubsetOf": {
    "baseline": "low",
    "baseline_low_date": "2024-06-11",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "127",
     "firefox_android": "127",
     "safari": "17",
     "safari_ios": "17"
    }
   },
   "javascript.builtins.Set.isSupersetOf": {
    "baseline": "low",
    "baseline_low_date": "2024-06-11",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "127",
     "firefox_android": "127",
     "safari": "17",
     "safari_ios": "17"
    }
   },
   "javascript.builtins.Set.symmetricDifference": {
    "baseline": "low",
    "baseline_low_date": "2024-06-11",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "127",
     "firefox_android": "127",
     "safari": "17",
     "safari_ios": "17"
    }
   },
   "javascript.builtins.Set.union": {
    "baseline": "low",
    "baseline_low_date": "2024-06-11",
    "support": {
     "chrome": "122",
     "chrome_android": "122",
     "edge": "122",
     "firefox": "127",
     "firefox_android": "127",
     "safari": "17",
     "safari_ios": "17"
    }
   }
  },
  "support": {
   "chrome": "122",
   "chrome_android": "122",
   "edge": "122",
   "firefox": "127",
   "firefox_android": "127",
   "safari": "17",
   "safari_ios": "17"
  }
 },
 "id": "set-methods",
 "groups": [
  "sets"
 ],
 "specs": [
  {
   "url": "https://tc39.es/ecma262/multipage/keyed-collections.html#sec-properties-of-the-set-prototype-object",
   "seriesComposition": "full",
   "shortname": "ecmascript",
   "series": {
    "shortname": "ecmascript",
    "currentSpecification": "ecmascript",
    "title": "ECMAScript® 2027 Language Specification",
    "shortTitle": "ECMAScript",
    "nightlyUrl": "https://tc39.es/ecma262/multipage/"
   },
   "shortTitle": "ECMAScript",
   "tests": {
    "repository": "https://github.com/tc39/test262",
    "testPaths": [
     "test"
    ],
    "excludePaths": [
     "test/intl402"
    ]
   },
   "organization": "Ecma International",
   "groups": [
    {
     "name": "TC39",
     "url": "https://tc39.es/"
    }
   ],
   "nightly": {
    "url": "https://tc39.es/ecma262/multipage/",
    "status": "Editor's Draft",
    "alternateUrls": [],
    "repository": "https://github.com/tc39/ecma262",
    "sourcePath": "spec.html",
    "pages": [
     "https://tc39.es/ecma262/multipage/scope.html",
     "https://tc39.es/ecma262/multipage/conformance.html",
     "https://tc39.es/ecma262/multipage/normative-references.html",
     "https://tc39.es/ecma262/multipage/overview.html",
     "https://tc39.es/ecma262/multipage/notational-conventions.html",
     "https://tc39.es/ecma262/multipage/ecmascript-data-types-and-values.html",
     "https://tc39.es/ecma262/multipage/abstract-operations.html",
     "https://tc39.es/ecma262/multipage/syntax-directed-operations.html",
     "https://tc39.es/ecma262/multipage/executable-code-and-execution-contexts.html",
     "https://tc39.es/ecma262/multipage/ordinary-and-exotic-objects-behaviours.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-source-code.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html",
     "https://tc39.es/ecma262/multipage/error-handling-and-language-extensions.html",
     "https://tc39.es/ecma262/multipage/ecmascript-standard-built-in-objects.html",
     "https://tc39.es/ecma262/multipage/global-object.html",
     "https://tc39.es/ecma262/multipage/fundamental-objects.html",
     "https://tc39.es/ecma262/multipage/numbers-and-dates.html",
     "https://tc39.es/ecma262/multipage/text-processing.html",
     "https://tc39.es/ecma262/multipage/indexed-collections.html",
     "https://tc39.es/ecma262/multipage/keyed-collections.html",
     "https://tc39.es/ecma262/multipage/structured-data.html",
     "https://tc39.es/ecma262/multipage/managing-memory.html",
     "https://tc39.es/ecma262/multipage/control-abstraction-objects.html",
     "https://tc39.es/ecma262/multipage/reflection.html",
     "https://tc39.es/ecma262/multipage/memory-model.html",
     "https://tc39.es/ecma262/multipage/grammar-summary.html",
     "https://tc39.es/ecma262/multipage/additional-ecmascript-features-for-web-browsers.html",
     "https://tc39.es/ecma262/multipage/strict-mode-of-ecmascript.html",
     "https://tc39.es/ecma262/multipage/host-layering-points.html",
     "https://tc39.es/ecma262/multipage/corrections-and-clarifications-in-ecmascript-2015-with-possible-compatibility-impact.html",
     "https://tc39.es/ecma262/multipage/additions-and-changes-that-introduce-incompatibilities-with-prior-editions.html",
     "https://tc39.es/ecma262/multipage/bibliography.html",
     "https://tc39.es/ecma262/multipage/colophon.html",
     "https://tc39.es/ecma262/multipage/copyright-and-software-license.html"
    ],
    "filename": "index.html"
   },
   "title": "ECMAScript® 2027 Language Specification",
   "source": "spec",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "fragment": "sec-properties-of-the-set-prototype-object"
  }
 ],
 "mdnUrls": [
  {
   "slug": "Web/JavaScript/Reference/Global_Objects/Set/difference",
   "title": "Set.prototype.difference()",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set/difference"
  },
  {
   "slug": "Web/JavaScript/Reference/Global_Objects/Set/intersection",
   "title": "Set.prototype.intersection()",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set/intersection"
  },
  {
   "slug": "Web/JavaScript/Reference/Global_Objects/Set/isDisjointFrom",
   "title": "Set.prototype.isDisjointFrom()",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set/isDisjointFrom"
  },
  {
   "slug": "Web/JavaScript/Reference/Global_Objects/Set/isSubsetOf",
   "title": "Set.prototype.isSubsetOf()",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set/isSubsetOf"
  },
  {
   "slug": "Web/JavaScript/Reference/Global_Objects/Set/isSupersetOf",
   "title": "Set.prototype.isSupersetOf()",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set/isSupersetOf"
  },
  {
   "slug": "Web/JavaScript/Reference/Global_Objects/Set/symmetricDifference",
   "title": "Set.prototype.symmetricDifference()",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set/symmetricDifference"
  },
  {
   "slug": "Web/JavaScript/Reference/Global_Objects/Set/union",
   "title": "Set.prototype.union()",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set/union"
  }
 ],
 "standardPositions": [],
 "hasNegativeStandardPosition": false,
 "stateOfSurveys": [
  {
   "name": "State of JS 2025",
   "url": "https://2025.stateofjs.com/en-US/features/#reading_list",
   "question": "reading_list",
   "subQuestion": "reading_list",
   "path": "dataAPI.surveys.state_of_js.js2025.reading_list.reading_list.combined.allEditions.0.buckets.2.entity"
  },
  {
   "name": "State of JS 2025",
   "url": "https://2025.stateofjs.com/en-US/features/#set_features",
   "question": "features",
   "subQuestion": "set_features",
   "path": "dataAPI.surveys.state_of_js.js2025.features.set_features.combined.allEditions.0.buckets.0.entity"
  },
  {
   "name": "State of JS 2025",
   "url": "https://2025.stateofjs.com/en-US/features/#object_features",
   "question": "features",
   "subQuestion": "object_features",
   "path": "dataAPI.surveys.state_of_js.js2025.features.object_features.combined.allEditions.0.buckets.0.entity"
  },
  {
   "name": "State of JS 2024",
   "url": "https://2024.stateofjs.com/en-US/features/#reading_list",
   "question": "reading_list",
   "subQuestion": "reading_list",
   "path": "dataAPI.surveys.state_of_js.js2024.reading_list.reading_list.responses.currentEdition.buckets.2.entity"
  },
  {
   "name": "State of JS 2024",
   "url": "https://2024.stateofjs.com/en-US/features/#set_features",
   "question": "features",
   "subQuestion": "set_features",
   "path": "dataAPI.surveys.state_of_js.js2024.features.set_features.responses.currentEdition.buckets.0.entity"
  },
  {
   "name": "State of JS 2024",
   "url": "https://2024.stateofjs.com/en-US/features/#object_features",
   "question": "features",
   "subQuestion": "object_features",
   "path": "dataAPI.surveys.state_of_js.js2024.features.object_features.responses.currentEdition.buckets.0.entity"
  }
 ],
 "chromeUseCounters": {
  "percentageOfPageLoad": 0.05982142,
  "url": "https://chromestatus.com/metrics/webfeature/timeline/popularity/227"
 },
 "interop": [],
 "wpt": null,
 "developerSignals": null,
 "bugs": {
  "chrome": [
   "https://bugs.chromium.org/p/v8/issues/detail?id=13556"
  ]
 },
 "useCases": null,
 "baselineLowDateAsObject": "2024-06-11T00:00:00.000Z",
 "baselineHighDateAsObject": null,
 "expectedBaselineHighDate": "2026-12-11"
}