Check if data exists using firebase function

Viewed 1839

How can I check if the days node exists using Firebase Cloud Function?

Pseudo-code inside index.js:

if(days.exists())
{
    //do something
}

see data structure here

1 Answers
Related