Skip to content

Home > sculp-js > isIpV4

isIpV4() function

判断字符串是否为 IPV4 格式,不对 ip 真实性做验证

Signature:

typescript
isIpV4: (value: string) => boolean

Parameters

Parameter

Type

Description

value

string

Returns:

boolean

{boolean}

Released under the MIT License.