✏️ Code CompletionJS JavaScript Medium⚡+20 XP
Array Method Chain
Complete the chain to get names of adults.
✏️ Fill in the blank
const adults = people
.filter(p => p.age >= 18)
.___((p) => p.name);Complete the chain to get names of adults.
const adults = people
.filter(p => p.age >= 18)
.___((p) => p.name);