Arrays of objects are everywhere. Given an array of users with shape { id: number; name: string }, create a new array containing only the name of each user.
You'll practice typing arrays of objects and using map to transform the data without mutation.
pluckNames(users: { id: number; name: string }[]): string[].pluckNames([{ id: 1, name: 'Ada' }, { id: 2, name: 'Lin' }]) → ['Ada', 'Lin']
pluckNames([]) → []