Here is an example of the input for the component. When this input is passed to the component, the output displays correctly.
const data = [
['Rank', 'Player', 'Player', 'Player'],
['1', 'sachin', 'dravid', 'ganguly'],
['2', 'pointhig', 'mcrath', 'warne'],
['3', 'sanath', 'murali', 'vaas'],
['4', 'akram', 'younis', 'akhamed']
]
However, my API response looks like the following. I attempted to convert the API response into the input data format shown above, with the Rank column automatically incrementing. Unfortunately, my conversion attempts were unsuccessful.
0:Array(3)
0:{fullname:'sachin'}
1:{fullname:'dravid'}
2:{fullname:'ganguly'}
1:Array(3)
0:{fullname:'pointhig'}
1:{fullname:'mcrath'}
2:{fullname:'warne'}
2:Array(3)
0:{fullname:'sanath'}
1:{fullname:'murali'}
2:{fullname:'vaas'}
3:Array(3)
0:{fullname:'akram'}
1:{fullname:'younis'}
2:{fullname:'akhamed'}