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

103
Views
How do I show a of list elements of an array?

I have a large array of 465 items, with each item having five elements. E.g.

const fixture = {id: '955dc591ce70', title: 'Liverpool vs Arsenal', date: '2022-03-18', start: '2022-03-18T19:35:00', end: '2022-03-18T21:05:00', competition: 'Premier League'}

I want to ouput an array of just the competitions for each game. I have tried console.log(this.state.fixtures.competition) but no success. How can i acheiev this?

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

0

Try this outputting to console

this.state.fixtures.forEach(fixture => console.log(fixture.competition));
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!