Hyperlinkv0.8.0-beta.28

MutableHashSet

MutableHashSet.isMutableHashSetconsteffect/MutableHashSet.ts:92
<V>(value: unknown): value is MutableHashSet<V>

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.

refinementsMutableHashSet
export const isMutableHashSet = <V>(value: unknown): value is MutableHashSet<V> => hasProperty(value, TypeId)