es6like-class
Write es6 like classes in es5 with a few more features
Cover some limitations to the current implementation of classes in es6:
- define properties
- use traits
Use
var newClass = newClass; var A = ; var B = ;
Class special properties
- abstract: set the class as abstract
- constructor: this is the constructor of the class, like the constructor function in es6 classes
- extends: extends a class from another or from an object
- implements: light checks over expected implementations and warn eventually when something is missing
- prototype
- static: define static properties in the class
- with: an array of traits, objects with properties