Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-email-address/docs/types/index.d"

Index

Functions

Functions

Export assignment isEmail

  • isEmail(value: any): boolean
  • Tests if a value is a valid(ish) email address.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether a value is a valid(ish) email address

    Example

    var bool = isEmail( 'beep@boop.com' );
    // returns true

    Example

    var bool = isEmail( 'beep' );
    // returns false

    Example

    var bool = isEmail( 'beep.com' );
    // returns false

    Example

    var bool = isEmail( null );
    // returns false