Articles Javascipt custom hash table

2019-11-13 censky 299 views

function Hash() { var self = this; self.data = []; self.add = function(key, value){ self.data.push([key, value]); }; self.get = function(key){ var arr = self.data; for(i = 0,le...