Unspecified number of parameters in a function : <p>I have an Array of Arrays and a method that expects N arguments of type Array.</p>

<p>For example, if I have:
<code>let arr = [[0, 1], [2, 3], [4, 5]];</code></p>

<p><code>arr</code> has 3 arrays inside, so I could do this:</p>

<pre><code>theFunction(arr[0]);
theFunction(arr[0], arr[1]);
theFunction(arr[0], arr[1], arr[2]);
</code></pre>

<p>The question is: How can I accomplish this if I don't know the number of arrays?</p>
