Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Closed as "Duplicate" by CertainPerformance, Daniel A. White javascript Users with the javascript badge or a synonym can single-handedly close questions as duplicates and reopen them as needed.
deleted 23 characters in body
Source Link
Marios
  • 27.5k
  • 9
  • 40
  • 59

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?

Source Link
learnbydoing
  • 519
  • 2
  • 7
  • 16

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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /