1const people = [
2 {
3 name: 'James',
4 age: 31,
5 },
6 {
7 name: 'John',
8 age: 45,
9 },
10
11 <div>
12 {people.filter(person => person.age < 60).map(filteredPerson => (
13 <li>
14 {filteredPerson.name}
15 </li>
16 ))}
17 </div>