Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isIpv4

  • isIpv4(val: string): boolean
  • Checks for a valid IPv4 address.

    example

    isIpv4('127.0.0.1'); // true isIpv4('2001:db8::ff00:42:8329'); // false isIpv4('5555.555.5.5'); // false isIpv4(true); // false

    Parameters

    • val: string

      The value to check.

    Returns boolean

    Whether the value is an IPv4 address.

Legend

  • Function

Generated using TypeDoc