I am trying to extract only the team names from this object of objects but not getting a way to do it
I have already tried Object.keys(data) but it is only showing the year of matches and I have tried Object.values(data) but its showing the output with both team name and value associated with it.
{ '2008':
{ 'Chennai Super Kings': 9,
'Delhi Daredevils': 7,
'Royal Challengers Bangalore': 4,
'Kolkata Knight Riders': 5,
'Rajasthan Royals': 13,
'Kings XI Punjab': 10,
'Deccan Chargers': 2,
'Mumbai Indians': 7 },
'2009':
{ 'Royal Challengers Bangalore': 9,
'Delhi Daredevils': 10,
'Deccan Chargers': 9,
'Chennai Super Kings': 8,
'Kolkata Knight Riders': 3,
'Rajasthan Royals': 6,
'Kings XI Punjab': 7,
'Mumbai Indians': 4 },
'2010':
{ 'Mumbai Indians': 11,
'Delhi Daredevils': 7,
'Kolkata Knight Riders': 6,
'Deccan Chargers': 8,
'Royal Challengers Bangalore': 8,
'Chennai Super Kings': 9,
'Rajasthan Royals': 6,
'Kings XI Punjab': 4 } }