Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isIntlPhone

  • isIntlPhone(val: string): boolean
  • Checks for a valid international phone number formatted value (WhatsApp, Telegram, etc.).

    example

    isIntPhone('+140832245678901'); // true isIntPhone('+297983652'); // true isIntPhone('+126853653'); // true isIntPhone('+0245673'); // false isIntPhone('1'); // false isIntPhone(true); // false

    Parameters

    • val: string

      The value to check.

    Returns boolean

    Whether the value is a valid international phone number.

Legend

  • Function

Generated using TypeDoc