creating new class instance and applying arguments as array
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible">Use of .apply() with &#39;new&#39; operator. Is this possible?</a>  </p>
</blockquote>



<p>I need to create a new insance of a class (<code>new SomeClass()</code>), but the arguments I need to pass is an array. I know I can call functions with <code>apply()</code> and pass the array of arguments as the second argument to <code>apply</code>, but how can I do this when creating a new instance?</p>
