voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
28 lines (16 loc) • 1.09 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [lite](./firestore_lite.md) > [refEqual](./firestore_lite.refequal.md)
## refEqual() function
Returns true if the provided references are equal.
<b>Signature:</b>
```typescript
export declare function refEqual<T>(left: DocumentReference<T> | CollectionReference<T>, right: DocumentReference<T> | CollectionReference<T>): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| left | [DocumentReference](./firestore_lite.documentreference.md)<!-- --><T> \| [CollectionReference](./firestore_lite.collectionreference.md)<!-- --><T> | A reference to compare. |
| right | [DocumentReference](./firestore_lite.documentreference.md)<!-- --><T> \| [CollectionReference](./firestore_lite.collectionreference.md)<!-- --><T> | A reference to compare. |
<b>Returns:</b>
boolean
true if the references point to the same location in the same Firestore database.