Apply Prototype Pattern

Use when creating a new object by copying an existing instance is cheaper or simpler than constructing from scratch — especially when object initialization is expensive or when the exact type of object to create is determined at runtime.

jeffreytse Updated
grimoire

File contents

jeffreytse/grimoire-core commit 18a39c7298

Frequently asked questions

npx get-skill add jeffreytse/apply-prototype-pattern