hash-table-ds

Hash Table implementation in JavaScript

Usage no npm install needed!

<script type="module">
  import hashTableDs from 'https://cdn.skypack.dev/hash-table-ds';
</script>

README

hash-table

Hash Table implementation in JavaScript

Installation & Usage :


npm install hash-table-ds

const HashTable = require("hash-table-ds");

let ht = new HashTable();

ht.set('name', 'kumar'); // Set key value pair in hash table
bst.get(name); // Get value from the hash table
bst.keys(); // Returns keys array
bst.values() // Returns unique values array