title: How to store list objects into array using angularjs or javascript?
body: <p>I try to use parse the data from the server and exactly I got result but my issue I want them to store them into a array, I used .push function but it returning only a number of items and not the data from the list of objects.</p>
  
  <p>I used this:</p>
  
  <pre><code>var results = [];
  
  return results.push(listOfObject);
  </code></pre>
  
  <p><strong>from</strong>: </p>
  
  <pre><code>angular.forEach(data.Value, function(items) { 
    console.log(items);
    return items; 
  
    return true;
  }); 
  </code></pre>
  
  <p><strong>results</strong>:</p>
  
  <pre><code>{Id: null, Name: "Innova"}
  {Id: null, Name: "Ferrari"}
  {Id: null, Name: "BMW"}
  {Id: null, Name: "Toyota"}
  {Id: null, Name: "Honda"}
  {Id: null, Name: "Hyuindai"}
  {Id: null, Name: "Kia"}
  {Id: null, Name: "Suzuki"}
  </code></pre>
  
  <p>I want to achieve like this:</p>
  
  <pre><code>Results: [
     0:{Id: null, Name: "Innova"}
     1:{Id: null, Name: "Ferrari"}
     2:{Id: null, Name: "BMW"}
     3:{Id: null, Name: "Toyota"}
     4:{Id: null, Name: "Honda"}
     5:{Id: null, Name: "Hyuindai"}
     6:{Id: null, Name: "Kia"}
     7:{Id: null, Name: "Suzuki"}
  ]
  </code></pre>