WPM0
WPM0
דיוק100%
נפילה0s
זמן הזמן—
דמויות0
תיקון0
טעויות0
התקדמות התקדמות0%
Caps Lock פעיל
תגית: Code Direct Guide
- תכנות שפה
- JavaScript
- קושי
- בינוני בינוני בינוני
Filter active records and return their names.
const users = [
{ name: "Ari", active: true },
{ name: "Bea", active: false },
{ name: "Kai", active: true },
];
const names = users
.filter((user) => user.active)
.map((user) => user.name);