We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_.some()
_.keys(object).some()
1 parent a110af0 commit 640466bCopy full SHA for 640466b
src/providers/database.ts
@@ -209,7 +209,7 @@ export class DeltaSnapshot implements firebase.database.DataSnapshot {
209
forEach(action: (a: DeltaSnapshot) => boolean): boolean {
210
let val = this.val();
211
if (_.isPlainObject(val)) {
212
- return _.keys(val).some(key => action(this.child(key)) === true);
+ return _.some(val, (value, key: string) => action(this.child(key)) === true);
213
}
214
return false;
215
0 commit comments