title: Why doesn't Array.push.apply work?
body: <p>As described <a href="https://stackoverflow.com/a/1374131/460138">here</a>, a quick way to append array b to array a in javascript is <code>a.push.apply(a, b)</code>.</p>
  
  <p>You'll note that the object a is used twice.  Really we just want the <code>push</code> function, and <code>b.push.apply(a, b)</code> accomplishes exactly the same thing -- the first argument of apply supplies the <code>this</code> for the applied function.</p>
  
  <p>I thought it might make more sense to directly use the methods of the Array object: <code>Array.push.apply(a, b)</code>.  But this doesn't work!  </p>
  
  <p>I'm curious why not, and if there's a better way to accomplish my goal.  (Applying the <code>push</code> function without needing to invoke a specific array twice.)</p>