analyzePhone
function analyzePhone(phone): PhoneAnalysis;Defined in: phone.ts:55
Analyzes a Pakistani mobile number in a single call.
Combines validation, E.164 formatting, and network detection.
Invalid numbers return { valid: false, formatted: null, network: "Unknown" }.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
phone |
string |
Phone number in any supported format |
Returns
Section titled “Returns”Structured phone analysis result