📅  最后修改于: 2022-03-11 15:01:10.803000             🧑  作者: Mango
function findByMatchingProperties(set, properties) {
return set.filter(function (entry) {
return Object.keys(properties).every(function (key) {
return entry[key] === properties[key];
});
});
}