1
I wanted to know how I can transform an Object Array to a Simple Array with only a certain vaor..
I have this:
const names = [
{id:0, name:"Jean"},
{id:2, name:"Ricardo"},
{id:4, name:"Letiiicia"},
{id:5, name:"Dai"},
{id:7, name:"Tamy"},
{id:10, name:"Abeu"},
I wanted to return this to:
const names /*ou um novo array, não sei*/ = ['Jean','Ricardo','Leticia','Dai','Tamy','Abeu']
A new array
only with the names
. Someone could help me ?
Thank you very much, Isac <3
– Jota