<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [mapKeysToArray](./rc-js-util.mapkeystoarray.md)

## mapKeysToArray() function

Converts a `Map` into an `Array` of its keys.

**Signature:**

```typescript
export declare function mapKeysToArray<TKey, TValue>(map: Map<TKey, TValue>): TKey[];
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

map


</td><td>

Map&lt;TKey, TValue&gt;


</td><td>


</td></tr>
</tbody></table>
**Returns:**

TKey\[\]

The keys of the map.

## Remarks

See [mapKeysToArray()](./rc-js-util.mapkeystoarray.md)<!-- -->.

