try
check the inline comments
var tempData = [{ "url": "http://google.com", "yyyy_mm": "2017-12", "skills": "C#", "count": 3 },
{ "url": "www.yahoo.com", "yyyy_mm": "2017-12", "skills": "asp.ner", "count": 4 },
{ "url": "yahoo.com", "yyyy_mm": "2017-12", "skills": "vb.net", "count": 10 },
{ "url": "yahoo.com", "yyyy_mm": "2017-11", "skills": "vb.net", "count": 5 },
{ "url": "yahoo.com", "yyyy_mm": "2017-11", "skills": "vb.net", "count": 6 },
{ "url": "yahoo.com", "yyyy_mm": "2017-11", "skills": "vb.net", "count": 10 },
{ "url": "yahoo.com", "yyyy_mm": "2017-10", "skills": "vb.net", "count": 11 },
{ "url": "yahoo.com", "yyyy_mm": "2017-10", "skills": "json", "count": 100 }];
var distinct = [];
for (var i = 0; i < tempData.length; i++) {
var item = tempData[i];
if (distinct.indexOf(item.yyyy_mm) == -1)
distinct.push(item.yyyy_mm);
}
var finalArray = [];
for (var i = 0; i < distinct.length; i++) {
var count = 0;
for (var j = 0; j < tempData.length; j++) {
if (distinct[i] == tempData[j].yyyy_mm)
count += tempData[j].count;
}
finalArray.push({"yyyy_mm":distinct[i],"count":count})
}