How to loop through the data I receive from snapshot.val() and push it to an array based on keys How to loop through the data I receive from snapshot.val() and push it to an array based on keys firebase firebase