Skip to content

Home > sculp-js > isDigit

isDigit() function

判断字符串是否为数字,例如六位数字短信验证码(093031)

Signature:

typescript
isDigit: (value: string) => boolean

Parameters

Parameter

Type

Description

value

string

Returns:

boolean

{boolean}

Released under the MIT License.