e164num • Docs
e164num / formatPartialUSPhoneNumber
formatPartialUSPhoneNumber(
e164PhoneNumber
):string
Returns a formatted partial US phone number based on the received E.164 phone number. This can be used to format phone numbers in input fields as the user types.
Parameter | Type | Description |
---|---|---|
e164PhoneNumber |
string |
The phone number to format. |
string