hashtable
Hashtable data structure implementation in JavaScript.
Stores entries (key, value) in buckets based on hashcode returned by hashing function. Entries are stored in an array within bucket if hashcodes collide, and retrieved by unique key value.
Install
npm install hashtablejs
bower install hashtable
Usage
const Hashtable = ; { thisx = x; thisy = y;} { return `Point:,`;} { return pointAx === pointBx && pointAy === pointBy;} const ht = hashCode equals; console; // undefinedconsole
API
;hashtable;hashtable;hashtable;hashtable;hashtablesize;hashtableclear;hashtable;hashtable;hashtable;hashtable;
Test
npm test
License
MIT