countryForDial
function countryForDial(digits): | Country | undefined;The country a +-prefixed number belongs to.
Ambiguous by construction: +1 covers 25 countries here and there is no way to
tell which from the calling code alone. The first table entry for a code wins
(the United States for +1, Russia for +7), which is what every phone field
does, and the caller can override with country.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
digits | string |
Returns
Section titled “Returns”| Country
| undefined