Given a function/type declaration like this:
function Person(name, ... other args ...){
this.name
... other init code ...
}
I would like to be able to call the Person constructor with an array of arguments to be applied to it. I could do:
Person.apply(this, args)
Except that this doesn't instantiate a person, it merely calls it as a function. Is there any way you call it in this way but in the "new" context, i.e behaving like:
new Person(...)