Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/set_operations/mod.ts>isDisjoint

🦕 Deno module which provides basic set operations
Latest
function isDisjoint
import { isDisjoint } from "https://deno.land/x/set_operations@v1.2.0/mod.ts";

Check if the setA has no elements in common with setB. Sets are disjoint if and only if there intersection is the empty set.

Parameters

setA: Set<T>
setB: Set<T>

Returns

boolean