Practice ยท 2 of 2
Find the One That Matters
Given const users = [{ name: "Ada", admin: false }, { name: "Grace", admin: true }, { name: "Linus", admin: false }], use .find() to get the first admin and log their name (should be Grace).
Rules:
- .find() with a condition on admin.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Arrays: Lists of Values โ Practice