multi-map
multi-map copied to clipboard
Map that can contains multiple values for the same key
I am passing an argument into a function and would like to check if it is a MultiMap, similar to: Array.isArray(someArray); It would be good there is an example of...
With the next code ```js [...mediasoupWorkers.values()] ``` being `mediasoupWorkers` an instance of `multimap` I get the error `TypeError: mediasoupWorkers.values is not a function or its return value is not iterable`....
This fixes #12 and allow to use `for..of` and array spread.
Can you please comment on the order in which keys and values will be returned when iterating this? JavaScript Map for instance guarantees that iterating over the map returns the...
This is perhaps expected, but is it correct? ```javascript it( 'results of prevous get should not be modified by future set', () => { let map = new Multimap( [['a',1]]);...