isSet
Checks if a value is a Set 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 Set<unknown> — True if value is a Set
Examples
Section titled “Examples”Check whether a value is a Set
Section titled “Check whether a value is a Set”Returns true only for real Set instances.
Type-safe narrowing in a conditional
Section titled “Type-safe narrowing in a conditional”Inside the if branch, the value is narrowed to Set
