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

89
Vistas
Destructuring JavaScript objects

How do I destructure the object below?

I want to get some data from the property caps_. I'm getting this data from an API and every time I try it returns undefined.

tabs_: {
    Promise {
      Session {
        id_: '4083ce6f-f536-41bd-9f4e-9c1a66c4486f',
        caps_: Capabilities { map_: [Map]; }
    }
  }
}

Here`s my code...

const caps = tabs_.caps_;
console.log(caps);

Even when I try to get the value of id_ , it returns undefined yet I can see a value in there without writing any code.

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