Lightweight dictionary
Available via Bower
bower install dictnr
Available via npm
npm install dictnr
var d = dictnr({
foo: 'bar'
});
d.get('foo'); // 'bar'
d.set('baz', 'qux');
d.get('baz'); // 'qux'
d.size(); // 2
d.remove('baz');
d.get('baz'); // undefined
d.clear();
d.size(); // 0
Using Jasmine for tests
gulp test
gulp build
Released under the MIT License.