Skip to main content
Module

x/set_operations/set_operations.ts>isDisjoint

🦕 Deno module which provides basic set operations
Go to Latest
function isDisjoint
import { isDisjoint } from "https://deno.land/x/set_operations@v1.0.3/set_operations.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