Skip to content

Commit

Permalink
Fixed "get" array example
Browse files Browse the repository at this point in the history
  • Loading branch information
marckrenn authored Aug 18, 2016
1 parent 329779b commit 7818157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ firebase.get "/value", (value) ->
# Simple 2, expecting dataset
firebase.get "/names", (names) ->
namesArray = _.toArray(names) # converts JSON to array
print name for name in names
print name for name in namesArray

# Advanced
response = (names) ->
namesArray = _.toArray(names)
print name for name in names
print name for name in namesArray

firebase.get("/names",response,{orderBy: "$key", limitToFirst: 5})

Expand Down

0 comments on commit 7818157

Please sign in to comment.