How can I group JSON Array by multiple Keys in Nodejs.
Is there any solution with underscore or lodash (does not matter if its plain javascript)?
Array:
[{ key: '2017-1', y: 1, gkey: 'y' },
{ key: '2017-1', x: 1, gkey: 'x' }]
Expected Result :
[{ key: '2017-1', x: 1, y:1 }]
merge.all(r);r is the Array.