Function: isEmail() ​
isEmail(
boolean
Defined in: index.ts:29
Validates if a string is a valid email address. Uses RFC 5322 compliant regex with ReDoS protection.
Parameters ​
email ​
string
The string to validate
Returns ​
boolean
True if the string is a valid email, false otherwise
Example ​
typescript
isEmail('user@example.com'); // true
isEmail('invalid'); // false