i have a problem. i don't understand how group an array multidimensional for two o more values and then sum the field. i just tried with underscore.js but it allows only grouped by value. i'm use extjs 4. i have a grid and i wnat group record for the grid
var records = Etx.getCmp('grdCorpoFatturaVendita').store.getRange();
var castellettoDataArray = [];
for (var x = 0; x < records.length; x++) {
console.log(records[x]);
castellettoDataArray.push(records[x].data);
}
var groupedData = _.groupByMulti(castellettoDataArray, 'CodiceContoContabile');
console.log(groupedData );