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

238
Views
How can I iterate through this array of objects in javascript?

I have a nested array of objects and I realise I am supposed to use the map function to iterate through it. But I keep getting this error 'stats.map is not a function' when I do this.

<TableContainer>
<Table>
{stats && stats.map((row)=>(
    <TableCell>
{row.map((row1)=>(
    <TableCell>
        {row1.map((row2)=>
        (
            <TableCell> {row2.data}</TableCell>
        ))}
        </TableCell>
))}
    </TableCell>
)
)}

</Table>
</TableContainer>

On doing console.log(stats) this is the result. enter image description here

Any help is appreciated.

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!