Data Structures

Hash Map

Definition

A data structure that maps keys to values using a hash function for O(1) average-case lookups, insertions, and deletions. In JavaScript, plain objects and the `Map` class serve as hash maps.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms