isDisjointFrom
ts
function Set.isDisjointFrom<T>(
target: ReadonlySet<T>,
source: ReadonlySet<NoInfer<T>>,
): booleanReturns true if the sets have no values in common, false otherwise.
Example
ts
import { Set } from "@monstermann/set";
Set.isDisjointFrom(Set.create([1, 2]), Set.create([3, 4])); // true
Set.isDisjointFrom(Set.create([1, 2]), Set.create([2, 3])); // falsets
import { Set } from "@monstermann/set";
pipe(Set.create([1, 2]), Set.isDisjointFrom(Set.create([3, 4]))); // true
pipe(Set.create([1, 2]), Set.isDisjointFrom(Set.create([2, 3]))); // false