Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Map

Also written: Map object

A JavaScript collection of key-value pairs that remembers insertion order, with `set`, `get`, `has` and `size`. The memo, the weighted graph and the trie's `children` are all Maps.

Where the book teaches it

Related terms

MemoizationSameValueZeroSet