Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
Asynchronous access to object's key value in javascript

I spent 3 days looking for help. I'm new to javascript so there are a lot of limitations

I'm trying to get the values in this array, but I haven't figured out the problem yet. Someone please help me, I thank you

const data = [
    {
        "label": "★ Choose Color",
        "value": {
            "9": {
                "i": 9,
                "value": "Irish-Green",
                "label": "Irish",
                "color": "#00902a"
            }
        },
        "price": false
    },
    {
        "label": "★ Choose Size",
        "value": {
            "1": {
                "i": 1,
                "value": "M",
                "label": "M",
                "color": "#ffffff"
            }
        },
        "price": {
            "1": 0
        }
    }
]
data.map((item) => {
  console.log(item.value)
  /*
  I want to get the following values:
  value,  label,  color
  */
  item.value.map((val) => {
    console.log(val)
  })
  
})

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!