title: What's the difference between a regular push and an Array.prototype.push.apply
body: <p>I don't quite understand the difference between the following two lines of code. In my code, the line with "apply" works the way I want it to, and the line with just regular push doesn't. </p>
  
  <p>So what is really going on when both of these are executed:</p>
  
  <pre><code>//this one does not work the way i want it to
  $scope.items.push(result.data.stuff)
  
  //this one works!
  Array.prototype.push.apply($scope.items, result.data.stuff);
  </code></pre>
  
  <p>Edit: sorry for confusion, I fixed it so that it has the "push" method in there</p>