title: lodash convert Object of Objects to array of objects including key in it
body: <p>sorry about poor explanation on the title. </p>
  
  <p>basically i want to know if there's better way or shorter code to do my job. i recently started using lodash library. </p>
  
  <p>so, </p>
  
  <p>i have an object of objects like following. </p>
  
  <pre><code>   {
      key1:{ firstname: john, lastname: doe}, 
      key2:{ firstname: david, lastname: smith},
     }
  </code></pre>
  
  <p>eventually i wanna make them as following array of objects.</p>
  
  <pre><code>   [
      {ID: key1, firstname: john, lastname: doe },
      {ID: key2, firstname: david, lastname: smith}
     ]
  </code></pre>
  
  <p>and this is what i did. </p>
  
  <pre><code>const ArrayOfObjects = [];
      _.each(ObjectsOfObjects, (value, key) =&gt; {
          ArrayOfObjects.push({
              UID: key,
              ...value,
          });
      })
  </code></pre>