Skip to content

Home > @jview/utils > getType

getType() function

判断变量的数据类型

Signature:

typescript
export declare function getType(val: unknown): string;
export declare function getType(val: unknown): string;

Parameters

ParameterTypeDescription
valunknown变量值

Returns:

string

数据类型