Function isValidEmail

  • Check if the given string is a valid email.

    Usage:

    const ret = isValidEmail('mazeyqian@gmail.com');
    console.log(ret);

    Output:

    true
    

    Parameters

    • email: string

    Returns boolean

    Return true if the given string is a valid email.