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

111
Vistas
method map() - getting from backend array all object values at once

Im downloading with axios a backend structure data.

I have something like this: advancedProfile.technologies (array with 5 objects)with keys {title, link, category, date, id}).

and then im rendering a divs with use of map.

The code line is like this :

{download.data.advancedProfile.technologies.map(obj=><div>{obj.title}</div>)}

With this line I can render all 5 objects from array, but only with one key value.

I am absent-minded, but how i can just map and get all 5 objects with all keys at once ? I dont want to copy and paste all key values separetely.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you only need values:

{download.data.advancedProfile.technologies.map(obj => (
  <div>
    {Object.values(obj).map(value => <div>{value}</div>)
  </div>
))}

If you need keys and values:

{download.data.advancedProfile.technologies.map(obj => (
  <div>
    {Object.entries(obj).map(([key, value])=> <div>{key}: {value}</div>)
  </div>
))}
about 4 years ago · Juan Pablo Isaza Denunciar
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