formatPhone
function formatPhone(phone): string | null;Defined in: phone.ts:36
Formats a Pakistani mobile number to international E.164 style (+923001234567).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
phone |
string |
The phone number string to format |
Returns
Section titled “Returns”string | null
Formatted phone number, or null if invalid