var cds = _.groupBy(vm.maniobrasPropuestas,'cd');
angular.forEach(cds, function (cd, key) {
console.log(cd);
angular.forEach(cd, function (mani, key) {
console.log(mani);
//my code
});
});
Thank you charlietfl
solved Create several arrays from an array, by an attribute. Javascript