Skip to content

Home > @jview/utils > getType

getType() function ​

判断变量的数据类型

Signature:

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

Parameters ​

Parameter

Type

Description

val

unknown

变量值

Returns:

string

数据类型