title: Create new array from an existing array attributes
body: <p>I am trying to create a new array out of limited values from an existing array. In the example below <code>LargeArray</code> contains many attributes &ndash; year, books, gdp and control. Lets say I want to create a new array that would only include year and gdp. </p>
  
  <pre><code>var LargeArray = [
      {year:1234, books:1200, gdp:1200, control:1200}, 
      {year:1235, books:1201, gdp:1200, control:1200}, 
      {year:1236, books:1202, gdp:1200, control:1200}
  ];
  </code></pre>
  
  <p>The new array I am trying to get, would look like this: </p>
  
  <pre><code>var NewArray = [
      {year:1234, gdp:1200},
      {year:1235, gdp:1200},
      {year:1236, gdp:1200}
  ];
  </code></pre>