getEmailDomain

Extract a lowercase domain after the last @ after trimming and truncating the input to 320 characters. Returns null without a nonempty local part or a domain containing a dot; this is not full email validation.

import { getEmailDomain } from '@threadplane/telemetry/shared';

Declaration · overload 1

export declare function getEmailDomain(email: unknown): string | null;

Parameters

email · required
unknown

Returns

string | null