Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

150
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda