Skip to content

Home > @jview/utils > isNumber

isNumber() function

是否是数值类型

Signature:

typescript
export declare function isNumber(val: unknown): val is number;
export declare function isNumber(val: unknown): val is number;

Parameters

ParameterTypeDescription
valunknown

Returns:

val is number