Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function validatePhoneNumber(phoneNumber: string): void;
phoneNumber
string
void
// Valid formats validatePhoneNumber("+14155552671"); // US validatePhoneNumber("+442071838750"); // UK validatePhoneNumber("+81312345678"); // Japan // Invalid formats (will throw) validatePhoneNumber("4155552671"); // Missing + validatePhoneNumber("+1-415-555-2671"); // Contains hyphens validatePhoneNumber("+0412345678"); // Starts with 0
Was this page helpful?