I\'m doing a filter on the angular, not to repeat when the inputId is the same, and then I\'m grouping, I\'m doing it this way:
dados.forEach((d)=>{