title: How to change from array of values to array of objects?
body: <p>I got data like this:</p>
  
  <pre><code>{"my_data":{"labels":[1,2,3,...], "idx":["idx1", "idx2", ...]}}
  </code></pre>
  
  <p>But I need it like this:</p>
  
  <pre><code>["my_data":{"labels":1, "idx": "idx1"},{"labels":2, "idx": "idx2"},... ]
  </code></pre>
  
  <p>I tried to loop like this to change the format:</p>
  
  <pre><code>var arr = [];
  for (let [key, value] of Object.entries(my_data)) {
      arr.push({[key]:value});
  }
  console.log(key, value); 
  </code></pre>
  
  <p>But the result is a format I can not use with ag-grid</p>
  
  <pre><code>labels: [1,2,...]
  idx: [idx1, idx2,...]
  </code></pre>