Function.prototype.construct = function(aArgs) { let oNew = Object.create(this.prototype); this.apply(oNew, aArgs); return oNew; };