1 const isValidEmail = (email) => {
2 const emailRegex = new RegExp('[a-z0-9]+@[a-z0-9]+.[a-z]{2,4}$');
3
4 return emailRegex.test(email.toLowerCase());
5 }
1 const isValidEmail = (email) => {
2 const emailRegex = new RegExp('[a-z0-9]+@[a-z0-9]+.[a-z]{2,4}$');
3
4 return emailRegex.test(email.toLowerCase());
5 }