typemap
1.1.0 • Public • Published typemap
A slow key-value store using constructors as the key. Runs in O(n)
time when
retrieving.
Installation
$ npm install typemap
Usage
var TypeMap = require('typemap');
var map = TypeMap();
map.set(SomeType, 'foo');
map.set(SomeOtherType, 'bar');
map.get(SomeType);
map.set(SomeOtherType);
Testing
$ npm test
License
MIT
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads