MCPcopy Create free account
hub / github.com/careercup/CtCI-6th-Edition-JavaScript / HashTable

Function HashTable

chapter07/7.12 - Hash Table/hashTable.js:52–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50};
51
52var HashTable = function() {
53 this.array = [];
54 this.limit = 8;
55};
56
57HashTable.prototype.insert = function(key, value) {
58 var hash = getHash(key, this.limit);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected