Home > @firebase/firestore > / > snapshotEqual
snapshotEqual() function
Returns true if the provided snapshots are equal.
Signature:
export declare function snapshotEqual<T>(left: DocumentSnapshot<T> | QuerySnapshot<T>, right: DocumentSnapshot<T> | QuerySnapshot<T>): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
left | DocumentSnapshot<T> | QuerySnapshot<T> | A snapshot to compare. |
right | DocumentSnapshot<T> | QuerySnapshot<T> | A snapshot to compare. |
Returns:
boolean
true if the snapshots are equal.