Package: effect
Module: HashSet
Checks whether a value is a HashSet.
Example (Checking for a HashSet)
import { HashSet } from "effect"
const set = HashSet.make(1, 2, 3)
const array = [1, 2, 3]
console.log(HashSet.isHashSet(set)) // true
console.log(HashSet.isHashSet(array)) // false
console.log(HashSet.isHashSet(null)) // false
Signature
declare const isHashSet: { <V>(u: Iterable<V>): u is HashSet<V>; (u: unknown): u is HashSet<unknown>; }
Since v2.0.0