title: Merge objects in array of objects based on id
body: <p>I have an array of objects like this
  How to achieve output form of this array ?
  Input:</p>
  <pre><code>[
   { meta_key: 'nickname', meta_value: 'testqa2', id: '10' },
    { meta_key: 'first_name', meta_value: 'TEST', id: '10' },
    { meta_key: 'last_name', meta_value: 'QA', id: '10' },
    { meta_key: 'nickname', meta_value: 'testqa10', id: '11' },
    { meta_key: 'first_name', meta_value: 'TEST', id: '11' },
    { meta_key: 'last_name', meta_value: 'QA', id: '11' }
  ]
  </code></pre>
  <p>Output</p>
  <pre><code>[
   {id:'10 , nickname:'testqa2 , first_name:'TEST' , last_name :'QA'},
   {id:'10 , nickname:'testqa10, first_name:'TEST' , last_name :'QA'}
  ]
  </code></pre>