isWeakSet
Checks if a value is a WeakSet instance.
Available since v3.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is WeakSet<object> — True if value is a WeakSet
Examples
Section titled “Examples”Check whether a value is a WeakSet
Section titled “Check whether a value is a WeakSet”Distinguishes WeakSet from the regular (iterable) Set.
Arrays are not WeakSets
Section titled “Arrays are not WeakSets”Only real WeakSet instances pass.
