title: Sum javascript arrays repeated value
body: <p>I am trying to sum repeated javascript arrays value and I want to every key has one value after this sum.</p>
  
  <p>Here is javascript array example:</p>
  
  <pre><code>var myArray = [ {'TR-01':1}, {'TR-02':3}, {'TR-01':3}, {'TR-02':5}];
  </code></pre>
  
  <p>Desired Formatted Array Should Like This:</p>
  
  <pre><code>var newArray = [ {'TR-01':4}, {'TR-02':8}];
  </code></pre>
  
  <p>How can we do this in javascript?</p>