title: populate object with new object in javascript
body: <p>how do I combine two objects so that it looks like the following code</p>
  <pre><code>{
    category: 'product 1',
    sub_category: 'sub product 1',
  }
  {
    nama: &quot;nama product1&quot;,
    jenis: &quot;jenis1&quot;
  }
  
  {
    nama: &quot;nama product1&quot;,
    jenis: &quot;jenis1&quot;,
    category: {
      category: 'product 1',
      sub_category: 'sub product 1',
    }
  }
  </code></pre>
  <p>Please help me</p>