Skip to content

Instantly share code, notes, and snippets.

View PadCesar's full-sized avatar

César Papilloud PadCesar

View GitHub Profile
@PadCesar
PadCesar / HashMap.js
Last active December 14, 2018 09:35 — forked from dtx/HashMap.js
A simple HashMap implementation in Javascript, just something I wrote while reading DailyJS.
var HashMap = function(){
this._size = 0;
this._map = {};
}
HashMap.prototype = {
put: function(key, value){
if(!this.containsKey(key)){
this._size++;
@dtx
dtx / HashMap.js
Created September 27, 2012 00:11
A simple HashMap implementation in Javascript, just something I wrote while reading DailyJS.
var HashMap = function(){
this._size = 0;
this._map = {};
}
HashMap.prototype = {
put: function(key, value){
if(!this.containsKey(key)){
this._size++;