Skip to content

Instantly share code, notes, and snippets.

@matthewstokeley
Last active August 16, 2019 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewstokeley/dea3f7cc56da3f40dd80da19ab4ffe6f to your computer and use it in GitHub Desktop.
Save matthewstokeley/dea3f7cc56da3f40dd80da19ab4ffe6f to your computer and use it in GitHub Desktop.
underscore-style prototype cloning

Underscore-style prototype chaining

Cloning the prototype allows the user to conform to the convention of not mutating an object's prototype while extending the flexibility of the prototypal chain.

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