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.

Any help is appreciated.