## MemoryStorage.key() method

Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.

**Signature:**

```typescript
key(index: number): string | null;
```

## Parameters

| Parameter | Type   | Description              |
|-----------|--------|--------------------------|
| index     | number | The numeric index.       |

**Returns:**

string | null

The nth key.
