Lightlines
By patternsdev

factory-pattern

patternsdev628 installs

Create configurable JavaScript objects without new.

What it does

Guides object creation with factory functions that adapt to environment or user configuration.

When to use it

Use when creating multiple objects with shared properties or when object creation depends on environment or configuration.

How to use it

It changes how the agent creates configurable objects, favoring factory functions and concise ES6 arrow function definitions.

What you provide

  • An existing project

Latest review

What you need · 0

No setup requirements listed.


Access · 0

No additional actions listed.