title: Store objects in an array in javascript
body: <p>I have few Objects in an object obj which I want to store in array.I am implementing push() for this case but it isn't giving correct output. Can someone suggest the approach to implement the same.</p>
  
  <pre><code>var obj ={
  car:{
  maruti: {wheels: 4, mileage:15},
  dezire: {wheels: 4, mileage:19}
      },
  
  bike:{
  suzuki:{wheels: 2, mileage:45},
  honda:{wheels: 2, mileage:85}
       } 
           }
  </code></pre>
  
  <p>Expected Output:</p>
  
  <pre><code>var obj ={
  car:[{
  maruti: {wheels: 4, mileage:15},
  dezire: {wheels: 4, mileage:19}
      }],
  
  bike:[{
  suzuki:{wheels: 2, mileage:45},
  honda:{wheels: 2, mileage:85}
       } 
           }]
  </code></pre>