Larger Structures with Design Patterns

In this chapter, we will cover the following recipes:

  • Defining steps with template functions
  • Assembling customized instances with builders
  • Replicating instances with factories
  • Processing a structure with the visitor pattern
  • Using a singleton to manage instances
  • Modifying an existing design pattern to fit different use cases
  • Combining existing design patterns to fit different use cases

Get ECMAScript Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.