getPhonePrefix
function getPhonePrefix(phone): string | null;Defined in: internal/phone-utils.ts:59
Returns the local Pakistani mobile prefix (0XXX) from a phone number.
Returns null when the phone cannot be normalized.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
phone |
string |
Returns
Section titled “Returns”string | null