Home > @dinofe/xt-core > isNumber

# isNumber() function

是否为有效 Number (opens new window)

Signature:

export declare function isNumber(a: any): boolean;

# Parameters

Parameter Type Description
a any 待校验的数据

Returns:

boolean

判断结果

# Example

import { isNumber } from '@dinofe/xt-core/common'
isNumber(0) // true
isNumber({}) // false