Check whether the given string is an email address.
Syntax
import { isEmail } from '@opentf/std';
isEmail(str: string): boolean;
Examples
isEmail('user@example.com'); // true
isEmail('test.email.with+symbol@example.org'); // true
isEmail('example.net'); // false
isEmail('email@example'); // false
isEmail('email@example@example.com'); // false