Multimap Versions Save

A map in which more than one value may be stored under each key.

v1.0.0

3 years ago
  • Added constructor consuming an iterable: new MultiMap([['k', 1], ['k', 2]])

v0.1.0

3 years ago
import MultiMap from '@github/multimap'

const map = new MultiMap<string, number>()
map.set('a', 1).set('a', 2)
map.get('a') // => Set([1, 2])