Function: isSet()
ts
function isSet(value): value is Set<unknown>;Checks whether a value is a Set. 检查值是否为 Set。
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check / 要检查的值 |
Returns
value is Set<unknown>
true when the value is a Set / 值是 Set 时返回 true
Example
ts
isSet(new Set())
// => trueSince
1.2.0