how can serach in object condiotion react js
const people = [
{
name: 'James',
age: 31,
},
{
name: 'John',
age: 45,
},
<div>
{people.filter(person => person.age < 60).map(filteredPerson => (
<li>
{filteredPerson.name}
</li>
))}
</div>