All Challengesintermediate

Trace this array transformation

AI uses this pattern to transform lists of data before displaying them.

typescript
const users = [
  { id: 1, name: 'Phat', active: true },
  { id: 2, name: 'Nam', active: false },
  { id: 3, name: 'Linh', active: true },
]

const activeNames = users
  .filter(user => user.active)
  .map(user => user.name.toUpperCase())

Question

What is the value of activeNames after this code runs?