const testUsers = [
{ id: 1, role: "admin", email: "admin@targetqa.com" },
{ id: 2, role: "tester", email: "tester@targetqa.com" },
];// Extract all emails with map:
const emails = testUsers.map(u => u.email);
// Filter by role:
const admins = testUsers.filter(u => u.role === "admin");
// Object destructuring (used extensively in Playwright fixtures):
const { page, context } = testArgs;