Skip to content

Commit 640466b

Browse files
committed
Use _.some() instead of _.keys(object).some()
1 parent a110af0 commit 640466b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export class DeltaSnapshot implements firebase.database.DataSnapshot {
209209
forEach(action: (a: DeltaSnapshot) => boolean): boolean {
210210
let val = this.val();
211211
if (_.isPlainObject(val)) {
212-
return _.keys(val).some(key => action(this.child(key)) === true);
212+
return _.some(val, (value, key: string) => action(this.child(key)) === true);
213213
}
214214
return false;
215215
}

0 commit comments

Comments
 (0)