# getKeyPath Type documentation

## TypeScript declaration

### [getKeyPath](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/utils.ts#L19-L33>)

**Kind:** constant

```
import { getKeyPath } from '@siemens/element-ng/formly';
```

```
(key?: any) => string[] = ...
```

```
getKeyPath(key?: any): string[]
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [key](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/utils.ts#L19-L19>) (optional) | `any` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)`[]`
