Skip to content

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").

Parameter Type Description
city string City name (case-insensitive)

string | null

Area code, or null if the city is not in the dataset