isDisjointFrom < Set < JavaScript
New, not-widely-supported method 1/24. The isDisjointFrom() method of a Set takes a set and returns a boolean indicating if this set has no elements in common with the given set.
const primes = new Set([2, 3, 5, 7, 11, 13, 17, 19]);
const squares = new Set([1, 4, 9, 16]);
const primesDisjointFromSquares = primes.isDisjointFrom(squares);
console.log(primesDisjointFromSquares);
// true