UNPKG

@wordpress/url

Version:
14 lines 364 B
/** * Determines whether the given string looks like an email. * * @param {string} email The string to scrutinise. * * @example * ```js * const isEmail = isEmail( 'hello@wordpress.org' ); // true * ``` * * @return {boolean} Whether or not it looks like an email. */ export function isEmail(email: string): boolean; //# sourceMappingURL=is-email.d.ts.map