fnewless
turn a function with an object or function as it's prototype into a constructor you CAN call without new
usage
var Constructor = /****************************************************************************** make object instances******************************************************************************/// make newless constructor { thisx = x }CTOR_objprototypetype = 'obj'var ctor1 = // make instancevar obj = // or `new ctor1('object')` // testconsole // trueconsole // trueconsole // 'object'console // 'obj' /****************************************************************************** make function instances******************************************************************************/// make newless constructor { thisx = x }CTOR_fn { return thisx }CTOR_fnprototypetype = 'fn'var ctor2 = // make instancevar fn = // or `new ctor2('function')` // testconsole // trueconsole // trueconsole // 'function'console // 'fn'console // 'FUNCTION'