You have a list of objects where you want to find the object(s) in the list that have a particular value for a property or attribute.
fruits = [{'fruit': 'apple' }, {'fruit': 'pear'}, {'fruit': 'banana'}, {'fruit': 'grape'}]
Python:
list(filter(lambda item: item['fruit'] == 'pear', fruits))
[item for item in fruits if item['fruit'] == 'pear']
Javascript:
fruits.filter(item => item['fruit'] === 'pear')