title: How to send array to function as multiple arguments?
body: <p>In Javascript I have simple <a href="http://jsfiddle.net/MXNbK/">test code</a>:</p>
  
  <pre><code>function x(a, b) {
    alert(a);
    alert(b);
  }
  
  var c = [1,2];
  x(c);
  </code></pre>
  
  <p>which send an argument <code>c</code> to function <code>x()</code> as one argument, assigned to <code>a</code> and <code>b</code> stays undefined :-/</p>
  
  <p>How can I send an array as multiple arguments to a function, not as one array?</p>