title: spread operator converting objects to array
body: <p>I'm trying to convert a data structure like this:</p>
  
  <pre><code>data = { 
    0:{A:a}, 
    1:{B:b}, 
    2:{C:c}, 
  }
  </code></pre>
  
  <p>into a structure like this:</p>
  
  <pre><code>[
   {0:{A:a}},
   {1:{B:b}}, 
   {2:{C:c}},
  ]
  </code></pre>
  
  <p>Using the spread operator like this: <code>[...data]</code> returns any empty array. </p>
  
  <p>I also tried <code>[{...data}]</code></p>
  
  <p>Is there a way to use the spread operator to get the desired result? Also, why doesn't this approach work?</p>