I think the following code will make the question clear.
// My class var Class = function() { console.log(\"Constructor\"); }; Class.prototype = { method: fu
Another way:
var factory = function(clazz /*, arguments*/) { var args = [].slice.call(arguments, 1); return new function() { clazz.apply(this, args) } }