MCPcopy Index your code
hub / github.com/NativeScript/firebase / forEach

Method forEach

packages/firebase-firestore/index.android.ts:739–748  ·  view source on GitHub ↗
(callback: (result: QueryDocumentSnapshot, index: number) => void, thisArg?: any)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
sizeMethod · 0.45
fromNativeMethod · 0.45

Tested by

no test coverage detected