# getPostalCodes

Source: https://pakdatakit.dev/api/typescript/postal/functions/getpostalcodes/

```ts
function getPostalCodes(city): string[];
```

Defined in: [postal.ts:79](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/postal.ts#L79)

Returns all known postal codes for a city (case-insensitive).

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `city` | `string` | City name to look up |

## Returns

`string`[]

Alphabetically sorted postal codes
