Glossary: Software Design Patterns in JavaScript
Lookup table
Also written: table, lookup
An object or Map from names to values, classes or functions, used instead of an if chain. CARRIERS and TRANSITIONS are lookup tables.
Glossary: Software Design Patterns in JavaScript
Also written: table, lookup
An object or Map from names to values, classes or functions, used instead of an if chain. CARRIERS and TRANSITIONS are lookup tables.