Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Hash function

Also written: hash, hashing, hashed

A function that turns any key into a whole number. A Map uses that number to pick the bucket where the key's pair is stored.

Where the book teaches it

Related terms

BucketCollisionHash map