Home > rc-js-util > mapDeleteGet
Get the stored value if present, then delete the key.
Signature:
export declare function mapDeleteGet<TKey, TValue>(map: Map<TKey, TValue>, key: TKey): TValue | undefined;
Parameter | Type | Description |
---|---|---|
map | Map<TKey, TValue> | |
key | TKey |
Returns:
TValue | undefined
See mapDeleteGet().