logo
logo

First Names

First Names

Create a function called
getFirstNames
that takes in an array of objects, each containing
firstName
,
lastName
, and
email
. Destructure the array to get only the
firstName
field from each object and return an array of first names.
Console
Submit
Solution
00:00