Skip to content

Function: isIp() ​

isIp(value): value is string

Defined in: src/validators.ts:341

Check if value is a valid IPv4 or IPv6 address

Parameters ​

value ​

unknown

The value to check

Returns ​

value is string

True if the value is a valid IP address string

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.