title: Is there a way I can select the same variable across objects and tally their values together efficiently?
body: <p>Let say I want to find the total Principal amount from across the six objects is there a way to do it quickly instead of doing it the way I am, which seem like a bad practice and would be hard to use if the number of objects are more.</p>
  <h3>Array</h3>
  <pre><code>var monthlyInfo =[{Date: &quot;Jan 2020&quot;, Balance: 747798, Mortgage: 2827, Principal: 2202, Interest: 625}
  {Date: &quot;Feb 2020&quot;, Balance: 745594, Mortgage: 2827, Principal: 2204, Interest: 623}
  {Date: &quot;Mar 2020&quot;, Balance: 743388, Mortgage: 2827, Principal: 2206, Interest: 621}
  {Date: &quot;Apr 2020&quot;, Balance: 741181, Mortgage: 2827, Principal: 2208, Interest: 619}
  {Date: &quot;May 2020&quot;, Balance: 738972, Mortgage: 2827, Principal: 2209, Interest: 618}
  {Date: &quot;Jun 2020&quot;, Balance: 736760, Mortgage: 2827, Principal: 2211, Interest: 616}]
  </code></pre>
  <h3>Current Code</h3>
  <pre><code>monthlyInfo[0].Principal + monthlyInfo[1].Principal + monthlyInfo[2].Principal + monthlyInfo[3].Principal + monthlyInfo[4].Principal + monthlyInfo[5].Principal 
  </code></pre>