hasNone
ts
function Set.hasNone<T>(
target: ReadonlySet<T>,
values: Iterable<NoInfer<T>>,
): booleanReturns true if the set contains none of the values from the iterable, false otherwise.
Example
ts
import { Set } from "@monstermann/set";
Set.hasNone(Set.create([1, 2, 3]), [4, 5]); // true
Set.hasNone(Set.create([1, 2, 3]), [3, 4]); // falsets
import { Set } from "@monstermann/set";
pipe(Set.create([1, 2, 3]), Set.hasNone([4, 5])); // true
pipe(Set.create([1, 2, 3]), Set.hasNone([3, 4])); // false