title: how to add array object values in javascript
body: <p>hi all i am using <code>javascript</code> working with array i have a set of data to do add array values object here i attached my code help how to solve this</p>
  
  <p>data</p>
  
  <pre><code>var data=[{one:1,two:2},{one:1,two:2},{one:1,two:2},{one:1,two:2}]
  </code></pre>
  
  <p>expected output</p>
  
  <pre><code>var sumdata=[{one:4,two:8}]
  </code></pre>
  
  <p>NOTE:one two column name is not static</p>