Skip to main content
Version: 0.1.8

isEmail

This method detects whether the entered string is an email or not

Params

isEmail(str);
  • str → in str Write the string you want to check whether it is an email or not in this parameter and pass it to the function

Returns

true | false
  • Boolean → If the input string is an email, it returns true and if the input string is not an email, it returns false.

Usage

isEmail('aeromche@gmail.com'); //true

isEmail("arian.koochak@gmail.com"); //true

isEmail("arian.koochak@gmail.com.com"); //true

isEmail("aeromchegmail.com"); //false

isEmail("aeromchegmail.com"); //false

isEmail("aeromche@gmail"); //false