title: How Group JSON Array Data By multiple keys
body: <p>How can I group JSON Array by multiple Keys in Nodejs.</p>
  
  <p>Is there any solution with underscore or lodash (does not matter if its plain javascript)?</p>
  
  <p>Array:</p>
  
  <pre><code>[{ key: '2017-1', y: 1, gkey: 'y' },
  { key: '2017-1', x: 1, gkey: 'x' }]
  </code></pre>
  
  <p>Expected Result :</p>
  
  <pre><code>[{ key: '2017-1', x: 1, y:1 }]
  </code></pre>