effect-io-ai

Package: effect
Module: HashSet

HashSet.isEmpty

Checks whether the HashSet is empty.

Example (Checking whether a HashSet is empty)

import { HashSet } from "effect"

const empty = HashSet.empty<string>()
console.log(HashSet.isEmpty(empty)) // true

const nonEmpty = HashSet.make("a")
console.log(HashSet.isEmpty(nonEmpty)) // false

Signature

declare const isEmpty: <V>(self: HashSet<V>) => boolean

Source

Since v4.0.0