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

167
Vistas
jquery object get value by known key
Object { "07.03.2022": "106", "08.03.2022": "114" }

i want to get the value (e.g. 114) from the known date 08.03.2022

I've already managed to do it the other way around:

const keyx = Object.keys(response.activeDates)[Object.values(response.activeDates).indexOf('114')];

but how can i get the 114 as result from the known 08.03.2022 ?

this don´t work:

var xto = "08.03.2022";
console.log(response.activeDates.xto);

Thanks!

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

0

Did you try like this:

console.log(response.activeDates[xto])

When you are using xto it will look for the key named xto and not the value of that variable.

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