getAreaCode
function getAreaCode(city): string | null;Defined in: numbers.ts:205
Returns the landline area code for a city, with trunk prefix (e.g. "042").
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
city |
string |
City name (case-insensitive) |
Returns
Section titled “Returns”string | null
Area code, or null if the city is not in the dataset