Skip to content

Glossary: Software Design Patterns in JavaScript

Simple factory

One function that knows every class and picks one from a name, usually through a lookup table. createCarrier("ups") returns a UpsCarrier.

Where the book teaches it

Related terms

FactoryRegistryFactory method