typemap
v1.1.0
Published
A slow key-value store using constructors as the key
Downloads
357
Readme
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); // 'foo'
map.set(SomeOtherType); // 'bar'
Testing
$ npm test
License
MIT