setMapItems()function
setMapItems(map: MutableMap<K, T>, items: Iterable<MapItem<ImmutableMap<K, T>>>): void
| Param | Type | |
|---|---|---|
map | MutableMap<K, T> | The mutable map to set the items on. required |
items | Iterable<MapItem<ImmutableMap<K, T>>> | Iterable of key/value entries to set. required |
| Return | |
|---|---|
void | Nothing; mutates map in place. |
Add multiple items to a map (by reference).
Examples
setMapItems(map, [["a", 1], ["b", 2]]);