DEV Community

Discussion on: JavaScript: Array Tips and Tricks You Should Know

chilupa profile image
Pavan Chilukuri • Edited on

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.

const friendsNames ={name}) => name)
Enter fullscreen mode Exit fullscreen mode
brojenuel profile image
Jenuel Oras Ganawed Author

Yup its, 3 hehe 3 is just another solution for map.. But I will say, map is still powerful. 😁