# getAreaCode

Source: https://pakdatakit.dev/api/typescript/numbers/functions/getareacode/

```ts
function getAreaCode(city): string | null;
```

Defined in: [numbers.ts:205](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/numbers.ts#L205)

Returns the landline area code for a city, with trunk prefix (e.g. `"042"`).

## Parameters

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

## Returns

`string` \| `null`

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