factory
This is a silly experiment, mostly.
Silly or not, the idea behind this is the opinion that this common js trick is not DRY, and is probably anti-pattern:
{if !this instanceof Thingreturn attr;...}
It'd be better if we had an idiom that didn't necessitate repeating the name of the constructor three times.
This aims to solve the problem, but with the caveat that you cannot call the constructor recursively. Yet the only reason I usually see for calling a constructor recursively is to implement the above—the pain point that this module aims to eliminate in the first place. :)
However, I don't know if it's rubbish, and I've never used it at scale on a real project.
usage
var {thiscalibration = calibration;};Robotprototype {return thiscalibrationsignal;};Robotprototype {console;};var bob = ;var bill = ;bob;bill;