try
var tempData = [{ "url": "http://google.com", "yyyy_mm": "2017-12", "skills": "C#", "count": 3 },
{ "url": "http://google.com", "yyyy_mm": "2017-11", "skills": "F#", "count": 4 },
{ "url": "http://google.com", "yyyy_mm": "2017-10", "skills": "asp.net", "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 }]
function filter(data, url, date) {
var result = [];
if (url)
result = data.filter(function (item) { return item.url == url });
if (date)
result = result.filter(function (item) { return item.yyyy_mm == date });
return result;
}
var data1 = filter(tempData, 'yahoo.com');
var data2 = filter(tempData, 'yahoo.com', '2017-10');
debugger
refer
JavaScript Array filter() Method[
^]