# keyHash

Canonical: https://docs.shumoku.dev/en/library/api/keyHash
Language: en

@shumoku/core · 0.4.0 · function

# keyHash

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/identity.ts#L109)

Stable string form of a key for use as a Map key.

```
keyHash(key: IdentityKey): string
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `key` | `IdentityKey` | No additional description. | `—` |

## Returns

```
string
```

[`libs/@shumoku/core/src/observation/identity.ts:109`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/identity.ts#L109)
