Skip to content

Instantly share code, notes, and snippets.

View rajeshsegu's full-sized avatar

Rajesh Segu rajeshsegu

  • Uber
  • Dublin, California
View GitHub Profile
@nzakas
nzakas / simplemap.js
Created April 3, 2014 17:38
A simple map implementation for JavaScript (not intended to be an ES6 polyfill)
function SimpleMap() {
this._data = {};
}
SimpleMap.prototype = {
get: function(key) {
return this.has(key) ? this._data[key] : null;
},