Functions

PhoneNumber.getInfo(number, country)

PhoneNumber.Info

Get phone number info.

Example

Transform number dialed in US format to inernational format

getPhoneNumberInfo("01174951234567", "US").number;
Parameters
  • number: String

    Phone number in country specific format, or E.164 if starts with +

  • country: String (optional)

    2-digit country code to get number format, if not specified, number is treated as E.164, e.g. "RU", "US"

Returns