title: Pass all the values from an array into a function as parameters
body: <p>I have an array of values:</p>
  
  <pre><code>['a', 'b', 'c', 'd']
  </code></pre>
  
  <p>and I need to pass these as parameters to a function:</p>
  
  <pre><code>window.myFunction('a', 'b', 'c', 'd');
  </code></pre>
  
  <p>This would be easier if I could just pass the array/object into the function, but the functions are written by other people or already exist and I cannot change them - they need to be passed as individual parameters, which is what I need solved.</p>
  
  <p>The number of values being passed is not consistent. It may be one, it may be 100. </p>
  
  <p><strong>Again, I cannot affect the functions. They are how they are, and I will always receive an array of values to pass into them.</strong> </p>