function emailHost
emailHost(email: ValidEmail): string

Host (everything after the last @) of a validated address. The ValidEmail type guarantees a host is present, so there is no empty-host case to handle and the compiler forbids passing a raw, unvalidated string.

Parameters

Return Type

string

Usage

import { emailHost } from "doc.ts";