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

219
Views
Access [ends_on] data from array of objects?

I wanted to access the ends_on data from that array of objects...but i can't get it work. The output is undefined. Pls do help me out.

}).then((response) => response.json())
            .then((result) => {
                console.log(result.eventData.ends_on);
            });

Output of above code [Output of the code]

Output of console.log [Output of api in console.log]

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

eventData here is an Array, so you would have to access it like this:

console.log(result.eventData[0].ends_on);
about 4 years ago · Juan Pablo Isaza Report
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!