title: Push into the first object of an array
body: <p>I want to push an object of object into the first object of an array.
  Here is my code:</p>
  
  <pre><code>const titles = {
    name: 'Not 1',
    name2: 'Not 2',
  };
  
  const array = [{ type: 'type', titles: [] }];
  let e;
  for (const name in titles) {
    e = titles[name];
  }
  array.push({ name: e });
  </code></pre>
  
  <p>This is the result i get :</p>
  
  <pre><code>[
    { 
      "type": "type", 
      "titles": [] 
    }, 
    { "name": "Not 2" }
  ]
  </code></pre>
  
  <p>This is the result i want : </p>
  
  <pre><code>[
    { 
      "type": "type", 
      "titles": [
        { "name": "Not 1" },
        { "name": "Not 2" }
      ] 
    }
  ]
  </code></pre>