Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Const emailRegexp

emailRegexp: RegExp = /^[0-9a-zA-Z]+@[0-9a-zA-Z\-]+\.[0-9a-zA-Z]+/

Const phoneRegexp

phoneRegexp: RegExp = /^1\d{10}$/g

Const stringNumberRegexp

stringNumberRegexp: RegExp = /^\d+$/

Functions

isEmail

  • isEmail(email: string): boolean
  • Parameters

    • email: string

    Returns boolean

isPhone

  • isPhone(phone: any): boolean
  • Parameters

    • phone: any

    Returns boolean

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter
  • Class
  • Class with type parameter
  • Enumeration

Generated using TypeDoc