Подскажите пожалуйста как реализовать такую функцию?
Need to check the array with structure [ {id: (int), value: (any) } ]. we should group it by id property and count the same value property types. equal objects should be counted only 1 time. as response we should return array with the structure [ {id: 1, number: 1, string: 10 } ]
arguments: [ {id: (number), value: (any) } ]