title: Smart way to convert child objects property name, into string array?
body: <p>I have an object similar to this:</p>
  
  <pre><code>{
      "name":"sdfsd",
      "id":1,
      "groups":[
          {
              "name":"name1",
              "id":1,
              "subGroups":[..]
          },
          {
              "name":"name2",
              "id":21,
              "subGroups":[..]
          }
      ]
  }
  </code></pre>
  
  <p>I want an array with following:</p>
  
  <pre><code>[
     {
        "name":"name1",
        "id":1
     },
     {
        "name":"name2",
        "id":21
     }
  ]
  </code></pre>
  
  <p>I could just make a loop, and create my array, but there must be a more beautiful way in ES6?</p>