TomWalbridge,
<body>
<script>
let objects = [{
name: 'Василий',
surname: 'Васильев'
},
{
name: 'Иван',
surname: 'Иванов'
},
{
name: 'Пётр',
surname: 'Петров'
}
]
const filter = (objects, property, value) => objects.filter(item => item[property] === value);
let result = filter(objects, 'name', 'Иван');
document.body.append(JSON.stringify(result));
</script>
</body>