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

117
Vistas
exists alternative way to debbug in console all elements of an Array Iterator object

exists alternative way to debbug in console all elements of an Array Iterator object , this is the best way I am found :

const fruit_4 = ["Banana", "Apple", "Kiwi", "Mango"];
const fruit_4_entries_2 = fruit_4.entries();

for (let i = 0; i < fruit_4.length; i++) {
    console.log("fruit_4_entries.next() element " + i + " : ", 
    fruit_4_entries_2.next();
}

excluding code below :

 for (x of fruit_4_entries_2) {
   document.getElementById("id_div_demo"). innerhtml += x + "<br>";
   window.console.log("test", x);
 }

Is there an alternative way for only fruit_4_entries_2 debbug which is Array Iterator object (without using fruit_4)?

For example, a way to debug with console.log (fruit_4_entries_2.next()), without knowing the size or what the fruit_4 array contains

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