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

138
Vistas
Javascript object not updating on time

I have a JS Object

I tried to assign a property

onDeskEquipmentData[EQParasite.id].contentInformation.contentwise[I].thermos = {thermoProp: JSON.parse(JSON.stringify(thermos_data["compound"])),};

note:- variable I is from forEach(function(I){}) loop it iterates inside a array;

It do not assign thermos property on time as in the next line a function named updateTempratureOnShare(EQHost) uses the thermos property throws an error that it don't contain the thermos property. I used console.log() to confirm this and yes it didn't contain that but when I manually checked on my browser's console for onDeskEquipmentData[EQParasite.id].contentInformation.contentwise[I].thermos It was there, I have also used settimeout but it didn't work. This error is comming in some more places.

note:- function updateTempratureOnShare(EQHost) is not inside forEach loop

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