Post Closed as "Duplicate" by CertainPerformance, Daniel A. White javascript
Users with the javascript badge or a synonym can single-handedly close javascript questions as duplicates and reopen them as needed.
I have an array of objects that looks like this: π§¨
[
{ apreciated_id: "123g1b1b23kbb3" },
{ apreciated_id: "asd567sad5a7sd" },
{ apreciated_id: "4hk3kjh234kjh4" }
]
But I want it to look like this: π¨βπ¨
["123g1b1b23kbb3", "asd567sad5a7sd", "4hk3kjh234kjh4"]
How can I do it? π Have a nice day! π
I have an array of objects that looks like this: π§¨
[
{ apreciated_id: "123g1b1b23kbb3" },
{ apreciated_id: "asd567sad5a7sd" },
{ apreciated_id: "4hk3kjh234kjh4" }
]
But I want it to look like this: π¨βπ¨
["123g1b1b23kbb3", "asd567sad5a7sd", "4hk3kjh234kjh4"]
How can I do it? π Have a nice day! π
I have an array of objects that looks like this: π§¨
[
{ apreciated_id: "123g1b1b23kbb3" },
{ apreciated_id: "asd567sad5a7sd" },
{ apreciated_id: "4hk3kjh234kjh4" }
]
But I want it to look like this: π¨βπ¨
["123g1b1b23kbb3", "asd567sad5a7sd", "4hk3kjh234kjh4"]
How can I do it?
Reformatting Array Objects Javascript
I have an array of objects that looks like this: π§¨
[
{ apreciated_id: "123g1b1b23kbb3" },
{ apreciated_id: "asd567sad5a7sd" },
{ apreciated_id: "4hk3kjh234kjh4" }
]
But I want it to look like this: π¨βπ¨
["123g1b1b23kbb3", "asd567sad5a7sd", "4hk3kjh234kjh4"]
How can I do it? π Have a nice day! π
lang-js