Closed nonplus closed 6 years ago
This behavior was added with https://github.com/soumak77/firebase-mock/pull/37
@nonplus does firebase return the object or an array?
OMG, that is the behavior that you also get from Firebase. 🤢
Well, that's pretty messed up, IMO, but firebase-mock behaves consistently.
Sorry about opening the issue.
Calling
set
with an object with numeric keys, causes.once('value')
to return an array:Output:
If the object has at least one non-numeric key, it is correctly returned.