Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

115
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!