Skip to content

Use prototype internal methods #10

Open

Description

@jmsv

At the moment, OatyArray is built as a class with internal methods, but to match Array it should be a function with OatyArray.prototype methods, e.g. OatyArray.prototype.push(). This has benefits, such as that all OatyArray instance methods are references to the prototype implementation.

This post does a great job of explaining how prototypes work and how to implement them.

Activity

  1. j-m commented on May 13, 2019

    @j-m
    Collaborator

    Is this not a duplicate of #4 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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