Hash Tables & JavaScript Objects
What collision resolution method is implemented in this code?
class HashTable {
set(key, value) {
const index = this._hash(key);
if (!this.keyMap[index]) {
this.keyMap[index] = [];
}
this.keyMap[index].push([key, value]);
}
}