defclass
Simple classical inheritance that is a whopping ten lines. Its Augment without the augment.
In the words of Aadit Shah
No premature optimization. No need to read the documentation of libraries like ClassManager. I can directly focus on the task at hand and optimize those things that really need optimization.
Usage
const defclass = ; const Beer = ; const favBeer = 'Spotted Cow';favBeer; // Here's a cold Spotted Cow!
If you need to inherit from another class use extend
.
const GrabAnother = defclass; const makeMeDance = `John's White Ale`;makeMeDance; // Here's a John's White Ale!makeMeDance; // 99 bottles of cold John's White Ale's on the wall.