I think the following code will make the question clear.
// My class var Class = function() { console.log(\"Constructor\"); }; Class.prototype = { method: fu
Doesn't this work?
function factory(class_, ...arg) { return new class_(...arg); }
I don't understand why you can't use new.
new