Checks if a string is a valid email

isValidEmail('sadsa') // false
isValidEmail('akash@gmail.com') // true
  • Parameters

    • email: string

      The email to validate

    Returns boolean

    Boolean indicating if the email is valid