const arr = [
{
name: 'Vasia',
lastName: 'Familia'
},
{
name: 'Sasha',
lastName: 'Familia'
},
{
name: 'Oleg',
lastName: 'Familia'
},
]
const funkParam = (parametr, value) => arr.filter (item => item.parametr.value === parametr.value)
funkParam('name', 'Oleg')