Home > rc-js-util > mapDeleteFromSet
Used with maps that store sets. Where a set exists for a given key the value will be removed from that set.
Signature:
export declare function mapDeleteFromSet<TKey extends object, TValue>(map: WeakMap<TKey, ISetLike<TValue>>, key: TKey, value: TValue): boolean;
Parameter | Type | Description |
---|---|---|
map | WeakMap<TKey, ISetLike<TValue>> | The Map to check. May be modified. |
key | TKey | The key to lookup in map . |
value | TValue | The value to remove. |
Returns:
boolean
true - If value was removed.
See mapDeleteFromSet().