case-insensitive-map
v1.0.1
Published
a map that doesn't care about the case of its keys. your keys have to be strings (if they aren't you should probably be using a regular map).
Downloads
7
Readme
case insensitive map
a map that doesn't care about the case of its keys. your keys have to be strings (if they aren't you should probably be using a regular map).
install
$ npm install case-insensitive-map
use
const CIM = require('case-insensitive-map')
const map = new CIM()
map.set('hello', 'world')
map.get('HELLo') // world
all the rest of the Map api works as well (this is just a wrapper)
license
MIT