Helper functions for prototypical inheritance in JavaScript.
Use the source code and JSDoc comments as documentation, here's a quick example to get you started.
const heir = // Create the base class. {} // Add a method.Baseprototype { return 'Base#foo'} // Create a sub class which inherits from base. {}heir // Mix in some functionality enhancing objects.heirheir // Change the original method.Subprototype { return 'Sub#foo' Sub_superfoo } // Create an instance of Sub and call it's method.const s = s // Returns "Sub#foo, Base#foo"
Unlicense
This project is given to you under the unlicense, as documented in the UNLICENSE
file in this directory. Enjoy.