Skip to content

How is the example mentioned in prototype one right #8

@ishan123456789

Description

@ishan123456789

https://github.com/gztchan/design-patterns-in-typescript/blob/master/prototype/prototype.ts
Here you're initializing the object of classes multiple times whereas the main purpose of the above is just to avoid that. Instead of using new ClassName, you should rather use an example where the same object is reused via the clone function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions