Skip to content

formatPhone

function formatPhone(phone): string | null;

Defined in: phone.ts:36

Formats a Pakistani mobile number to international E.164 style (+923001234567).

Parameter Type Description
phone string The phone number string to format

string | null

Formatted phone number, or null if invalid