The raw input
isEmail("user@domain.com") >>
{
valid: true,
parsed: {
match: "user@domain.com",
index: 0,
captured: ["user", "domain.com"],
named: {
user: "user",
domain: "domain.com",
},
},
};
isEmail("") >>
{
valid: false,
error: 'Not an email: ""',
};
Validate an email