Overview

A hash map built in JavaScript to explore hashing, collisions, and resizing. String keys are mapped to buckets, with a custom keyed linked list storing entries that share a bucket.

Operations and resizing

The map supports insertion and updates, retrieval, membership checks, removal, and clearing. It can also return collections of keys, values, or entries.

When the load factor exceeds 0.75, capacity doubles and the entries are rehashed. Private class fields keep the map's internal storage behind its public methods. The project focuses on the data structure and includes usage examples in its README.