Format.IsIPv4

Returns true if the string is an IPv4 address

Function

const R = Format.IsIPv4('192.168.0.1')

Schema

{ format: 'ipv4' }

Remarks

Checks whether the input string is a valid IPv4 address (four decimal octets, 0–255).