2 lines
80 B
TypeScript
2 lines
80 B
TypeScript
|
export const isEmail = (str: string) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(str);
|