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