Home > @firebase/database > DataSnapshot > exists
DataSnapshot.exists() method
Returns true if this DataSnapshot
contains any data. It is slightly more efficient than using snapshot.val() !== null
.
Signature:
exists(): boolean;
Returns:
boolean