removeMapItems()function

removeMapItems(map: MutableMap<K, T>, ...keys: K[]): void
ParamType
mapMutableMap<K, T>
The mutable map to remove the items from. required
keysK[]
The keys to delete. required
Return
void
Nothing; mutates map in place.

Remove multiple items from a map (by reference).

Examples

removeMapItems(map, "a", "b");