const students = [
{ name: 'Alice', age: 20 },
{ name: 'Bob', age: 22 },
{ name: 'Charlie', age: 23 }
];
const studentToFind = { name: 'Bob', age: 22 };
const isIncluded = students.includes(studentToFind);
console.log(isIncluded);
Post #2003
6.33K
CHALLENGE
- 👍 10
- ❤ 1