Skip to content

Avoid polluting globals #203

@MartinMuzatko

Description

@MartinMuzatko

Hey there! I think for the sake of simplicity, you extend the prototype of Array. To communicate best practices, I'd like to come up with examples that do not extend the global Array object.

The alternative, to create objects from scratch is also more real-world oriented.

Here is a list of examples that use prototype

Thank you.

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