Auto Delegate
A simple auto delegation utility which attaches all the properties of some delegate to a single property under the owner
What for?
This can be helpful if you want to mixin some object instance and its functionality without directly extending the target object.
Here is some random example from the tests (sort of)
; // There is some counter class (babel-ified) count = 0; thiscount++; thiscount--; // There is some point thingo { thisx = x; thisy = y; } get `(, )`; /* Well here you can delegate to these two additional classes. Its not an amazing example * but shows the idea. Its a bit more useful with a bigger object that also has its state * spoiled when extending but this is just a demo */ { ; ; } // And use the methodslet tracked = ;tracked;console; // 1console; // '(0, 2)'