let array = [{x:'05.05.2020', y:50}, {x:'08.05.2020', y:70} ... ]
const reducer = (acc, val) => {
if (val.x) {
let key = val.x.slice(3); // получаем ключ вида mm.yyyy, если только mm надо, то val.x.slice(3, 5)
if (!key in acc) {
acc[key] = 0;
}
acc[key] += val.y;
}
return acc;
}
let result = array.reduce(reducer, {});