title: ([ numbers ], numbers) as function parameter, how to get numbers from outside of [ ]?
body: <pre><code>function a(b) {
  
   var array = Array.prototype.slice.call(b);
   console.log(array);
  
   var array_two = ???;
   console.log(array_two);
  
  }
  
  a([1, 2, 3], 1, 2);
  </code></pre>
  
  <p><code>console.log(array);</code> gives me output <code>[1, 2, 3]</code> as expected.</p>
  
  <p>What I want to achieve here is getting <code>[1, 2]</code> - numbers after [ ], joined as array. I thought that <code>b[number]</code> would solve the problem. <code>b[0]</code> - array, <code>b[1]</code> - first number after array, <code>b[2]</code> - second number after array but apparently it does not work like that. Do you know any solution for that?</p>