JavaScript Set isDisjointFrom()
Example
const A = new Set(['a','b','c']);
const B = new Set(['b','c','d']);
let answer = A.isDisjointFrom(B);
Try it Yourself »
Description
The isDisjointFrom method returns true
if no elements in this set are elements in the argument set:

Syntax
isDisjointFrom(set)
Parameters
| Parameter | Description |
| set | Required. The set to test against. |
Return Value
| Type | Description |
| Boolean | true
if no elements in this set are elements in the argument set, otherwise false. |
Set Logic Metods:
See Also:
Browser Support
The Set.isDisjointFrom() method is supported in all modern browsers since June 2024:
| Chrome 122 | Edge 122 | Firefox 127 | Safari 17 | Opera 108 |
| Feb 2024 | Feb 2024 | Jun 2024 | Sep 2023 | Mar 2024 |