title: Access elements from array a dict and build another array?
body: <p>I am having a problem to figure out in ReactJs how to access the elements from a dict in array and to build another dict.
  The data is like this:</p>
  
  <pre><code>[ {name: "dad", data: 10}, {name: "mom", data: 20}, {name: "dad", data: 40},
       {name: "mom", data:50}, {name: "dad", data: 01}]
  </code></pre>
  
  <p>I want the data to be like this:</p>
  
  <pre><code>[{name: "dad", data: [10,40,01]}, {name: "mom", data: [50,20]}]
  </code></pre>