effect-io-ai

Package: effect
Module: MutableHashSet

MutableHashSet.isMutableHashSet

Checks whether the specified value is a MutableHashSet, false otherwise.

When to use

Use to narrow an unknown value before treating it as a mutable hash set.

Details

The check looks for the MutableHashSet runtime marker.

Gotchas

Native Set values do not satisfy this check.

See

Signature

declare const isMutableHashSet: <V>(value: unknown) => value is MutableHashSet<V>

Source

Since v4.0.0