This is a simple implementation of hastable in Javascript
- Automatic loadfactor based hashtable resizing
- Data chaining
- No extra dependecies
- Only 4KB
- Clone this repo and use it in your project
- Run this command -
npm i js-hash-triptex
const hashtable = require('js-hash-triptex'); //importing the hash
const myTable = new hashtable();
myTable.setItem('firstName', 'Tripto21');
myTable.setItem('lastName', 'Afsin');
myTable.setItem('age', 22);
console.log(myTable.getItem('firstName'));
console.log(myTable.getItem('lastName'));
console.log(myTable.getItem('age'));