I am using firebase with axios. I need to convert this Object:
{r1: "Room 1", r2: "Room 2", r3: "Room 3"}
Into an Array:
rooms = [
{ id: 'r1', name: 'Room 1'},
{ id: 'r2', name: 'Room 2'},
{ id: 'r3', name: 'Room 3'},
];
Currenltly, I cam calling from firebase with axious like this:
axios.get('firebaseURL').then(response => {console.log(response.data)});