Skip to content

Home > @jview/utils > isSymbol

isSymbol() function

是否是 symbol 类型

Signature:

typescript
export declare function isSymbol(val: unknown): val is symbol;
export declare function isSymbol(val: unknown): val is symbol;

Parameters

ParameterTypeDescription
valunknown

Returns:

val is symbol