Count total with two criterias using Lodash
问题 I can't figure out how I can count the total devices based on location and unique serial number. { "dates": [ { "date": "Sep 1, 2014", "devices": [ { "model": "Canon", "location": "Chicago", "serialNum": "abc123" }, { "model": "Canon", "location": "Chicago", "serialNum": "xyz456" }, { "model": "HP", "location": "New York", "serialNum": "123456" }, { "model": "Brother", "location": "Chicago", "serialNum": "DEF777" } ] }, { "date": "Sep 2, 2014", "devices": [ { "model": "Canon", "location":