Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isIpv6

  • isIpv6(val: string): boolean
  • Checks for a valid IPv6 address.

    example

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

    Parameters

    • val: string

      The value to check.

    Returns boolean

    Whether the value is an IPv6 address.

Legend

  • Function

Generated using TypeDoc