isEmpty
ts
function Set.isEmpty<T extends ReadonlySet<unknown>>(
target: T,
): booleanReturns true if the set contains no values, false otherwise.
Example
ts
import { Set } from "@monstermann/set";
Set.isEmpty(Set.create()); // true
Set.isEmpty(Set.create([1, 2, 3])); // falsets
import { Set } from "@monstermann/set";
pipe(Set.create(), Set.isEmpty()); // true
pipe(Set.create([1, 2, 3]), Set.isEmpty()); // false