Skip to content

github/multimap

MultiMap

Store multiple values under each map key.

Installation

$ npm install @github/multimap

Usage

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

Development

npm install
npm test

License

Distributed under the MIT license. See LICENSE for details.

About

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

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 7