Glossary: JavaScript Beyond the Basics
Map / Set
Also written: Map, Set, Map.groupBy, Object.groupBy
A Map is a lookup table whose keys can be any value, remembering insertion order and its own size. A Set holds unique values and quickly answers "is this in here?" with `has`.