title: Angular operations with arrays
body: <p><strong>Hi!</strong><br>
  I'm a beginner in Angular, and haven't really found anything for this, so if you can help me...please.<br>
  Here's an array  </p>
  
  <pre><code>firstarray[] = [{id:1,name:abc},{id:2,name:cba},{id:3,name:asd}]  
  </code></pre>
  
  <p>What I'd like to do is:<br>
  <strong>First</strong>: I have an index, for example <code>indexNum = 1</code>;<br>
  Then I want a new array with <code>firstarray</code>'s index items, the index is 1, so these would be id:2 and name:cba.  </p>
  
  <pre><code>indexItems[] = {2,cba}
  </code></pre>
  
  <p><strong>Secondly</strong>:<br>
  I want to make two new arrays from the <code>firstarray</code> one stores <strong>only the ids</strong> and the other stores <strong>only the names</strong>.</p>
  
  <pre><code>id_array[] = {1,2,3}  
  
  name_array[] = {abc,cba,asd}
  </code></pre>