Skip to content

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.

Parameter Type
phone string

string | null