Lo-Dash template fiddle
Nothing to see here, just a fiddle with Lo-Dash referenced
HTML
<script src="https://cdn.jsdelivr.net/lodash/4.15.0/lodash.min.js"></script>
JavaScript
var dataSource = { '2010': { '3': { '4': 1 }, '8': { '5': 1 } },'2014': { '8': {} },'2015': { '6': { '10': 1 } },'2016': { '7': { '19': 1 }, '8': { '4': 1 } } }
_.forEach(dataSource, function(item){
_.forEach(item, function(obj){
if(Object.keys(obj).length === 0){
console.log(item)
}
});
})