Skip to main content
Module

x/set_operations/mod.ts>isDisjoint

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