@dialstack/sdk-dev / js/src / parseRegionCode
Function: parseRegionCode()
TypeScript
function parseRegionCode(value):
| {
country: SupportedCountry;
region: string;
}
| undefined;
Defined in: sdk/js/src/constants/countries.ts:138
The supported country and region of an ISO 3166-2 code, CA-QC, any case.
Parameters
value
string | undefined
Returns
| {
country: SupportedCountry;
region: string;
}
| undefined