(callback: (result: QueryDocumentSnapshot, index: number) => void, thisArg?: any)
| 737 | } |
| 738 | |
| 739 | forEach(callback: (result: QueryDocumentSnapshot, index: number) => void, thisArg?: any): void { |
| 740 | if (typeof callback === 'function') { |
| 741 | const cb = thisArg ? callback.bind(thisArg) : callback; |
| 742 | const count = this.native.size(); |
| 743 | const documents = this.native.getDocuments(); |
| 744 | for (let i = 0; i < count; i++) { |
| 745 | cb(QueryDocumentSnapshot.fromNative(documents.get(i))); |
| 746 | } |
| 747 | } |
| 748 | } |
| 749 | |
| 750 | toJSON() { |
| 751 | return { |
nothing calls this directly
no test coverage detected