Thanks to visit codestin.com
Credit goes to github.com

Skip to content
generated from kyeotic/jsr-template

A map with multiple values per key (a Map of Sets)

License

Notifications You must be signed in to change notification settings

kyeotic/multimap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@kyeotic/multimap

Provides a MultiMap and IndexedMultiMap for Mapping keys that contain multiple values

import { MultiMap } from '@kyeotic/multimap'

const multi = new MultiMap<string, string>()

multi.add('first', 'a')
multi.add('first', 'b')
multi.add('first', 'c')

console.log(mutli.get('first')) // => Set('a', 'b', 'c')
console.log(mutli.hasKey('first')) // => true
console.log(mutli.hasValue('a')) // => true

About

A map with multiple values per key (a Map of Sets)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published