Skip to content

Home > sculp-js > isInteger

isInteger() function

判断字符串是否为整数(自然数),即 ...,-3,-2,-1,0,1,2,3,...

Signature:

typescript
isInteger: (value: string) => boolean

Parameters

Parameter

Type

Description

value

string

Returns:

boolean

{boolean}

Released under the MIT License.