Firebase: the great, the meh, and the ugly
Pier Bover

I agree to some of these points, however they provide offline capabilities. One of the things new developers seems to struggle with is that firebase does not respond with Array, but with {key:obj} object. I wrote a small ES6 function that converts the object to array and assign the key as a key to the firebase object itself:

const toArray = function (firebaseObj) {

return Object.keys(firebaseObj).map((key)=> {
return Object.assign(firebaseObj[key], {key});


export {toArray}

Why I did this? I’m mostly using the Firebase REST API to manage my data, because of the limitations of the realtime users for the free plan. So every time I need to do CRUD operation on specific item, I have to reference it by it’s key.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.