Table of contents
METHOD | RETURN | DESCRIPTION |
---|---|---|
format (phoneNumber, countryCode) | string
|
The method that transforms phone number to international format with localization of ” ext |
parse (phoneNumber, countryCode) | string
|
The method that transforms phone number to E-123 international format |
The method that transforms phone number to international format with localization of ” ext. “.
Return: string
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
phoneNumber |
String
|
The phone number in string |
countryCode |
String
|
ISO 3166-1 two-letter country code. Region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format. |
The method that transforms phone number to E-123 international format.
Return: string
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
phoneNumber |
String
|
The phone number in string |
countryCode |
String
|
ISO 3166-1 two-letter country code. Region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format. |