I am working with this particular data structure:
const info = {
school1:{city:'medway',points:6},
school2:{city:'milan',points:8},
school3:{city:'brooklyn',points:103,
}
Does anyone know how I can transform it into this JavaScript format:
const transformedData = [
{name:'school1', city:'medway',points:6},
{name:'school2', city:'milan',points:8},
{name:'school3', city:'brooklyn',points:103}
]