Created
July 19, 2014 15:54
-
-
Save CurtisHumphrey/49fca712e9e9a2a86df5 to your computer and use it in GitHub Desktop.
Firebase check for existance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Check_Event: (ref, child, callback) -> | |
ref | |
.child child | |
.once 'value', (snapshot) -> | |
exists = snapshot.val() isnt null | |
callback exists | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment