Skip to content

Instantly share code, notes, and snippets.

@CurtisHumphrey
Created July 19, 2014 15:54
Show Gist options
  • Save CurtisHumphrey/49fca712e9e9a2a86df5 to your computer and use it in GitHub Desktop.
Save CurtisHumphrey/49fca712e9e9a2a86df5 to your computer and use it in GitHub Desktop.
Firebase check for existance
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