<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [mapDeleteGet](./rc-js-util.mapdeleteget.md)

## mapDeleteGet() function

Get the stored value if present, then delete the key.

**Signature:**

```typescript
export declare function mapDeleteGet<TKey, TValue>(map: Map<TKey, TValue>, key: TKey): TValue | undefined;
```

## 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>
<tr><td>

key


</td><td>

TKey


</td><td>


</td></tr>
</tbody></table>
**Returns:**

TValue \| undefined

## Remarks

See [mapDeleteGet()](./rc-js-util.mapdeleteget.md)<!-- -->.

