Skip to content

Glossary: Software Design Patterns in JavaScript

Map

Also written: Map object

A built-in JavaScript collection from keys to values, with `get`, `set` and `has`. It is safer than a plain object for lookups by user-typed names, because a name like `"constructor"` can't match something inherited.

Where the book teaches it

Related terms

RegistryObject.hasOwnLookup table