Skip to content

Instantly share code, notes, and snippets.

View devoncrouse's full-sized avatar

Devon Crouse devoncrouse

View GitHub Profile
@devoncrouse
devoncrouse / dictionary.js
Created October 9, 2011 20:12 — forked from dakatsuka/dictionary.js
Dictionary Class for Node.js
var Dictionary = function() {
this.keys = {};
this.length = 0;
this.defaultValue = null;
};
Dictionary.prototype.store = function(key, value) {
this.keys[key] = value;
this.length++;
};