Expand description
A Map containing sets of items
This class contains the standard Map
methods as well as a subset of
Set
methods for convenient access to the underlying set.
import { SetMap } from '@woubuc/multimap';
let map = new SetMap();
map.add('foo', 1); // foo: Set(1)
map.add('foo', 2); // foo: Set(1, 2)
map.add('foo', 1); // foo: Set(1)