title: Pushing keys and value from an inside Obj in the Parent object
body: <p>Despite the fact that the title seems difficult, let me give you a simple example.
  I have an object.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    name:"Ethan"
    pets:{cat:"joline",dog:"Momo",bird"Mimi"}
  }</code></pre>
  </div>
  </div>
  </p>
  <p>My goal is to push the values of the array to the object.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    {
        name:"Ethan",
        cat:"joline",
        dog:"Momo",
        bird"Mimi"
      }</code></pre>
  </div>
  </div>
  </p>
  <p>The question is simple and I believe you can approach it in a clever way, thanks.</p>