Nice article! Number 3: Using .map is much easier and we can use object destructuring if you want to pull a specific value. 😄 This should give you the same result.
.map
const friendsNames = friends.map(({name}) => name)
Yup its, 3 hehe 3 is just another solution for map.. But I will say, map is still powerful. 😁
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice article!
Number 3: Using
.map
is much easier and we can use object destructuring if you want to pull a specific value. 😄This should give you the same result.
Yup its, 3 hehe 3 is just another solution for map.. But I will say, map is still powerful. 😁