function isWeakSet
isWeakSet(object: unknown): object is WeakSet<object>
Deprecated
Returns true
if the value is a built-in WeakSet
instance.
util.types.isWeakSet(new WeakSet()); // Returns true
object is WeakSet<object>
isWeakSet(object: unknown): object is WeakSet<object>
Returns true
if the value is a built-in WeakSet
instance.
util.types.isWeakSet(new WeakSet()); // Returns true
object is WeakSet<object>