MCPcopy Create free account
hub / github.com/NativeScript/firebase / forEach

Method forEach

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

Source from the content-addressed store, hash-verified

677 }
678
679 forEach(callback: (result: QueryDocumentSnapshot, index: number) => void, thisArg?: any): void {
680 if (typeof callback === 'function') {
681 const cb = thisArg ? callback.bind(thisArg) : callback;
682 const count = this.native.count;
683 for (let i = 0; i < count; i++) {
684 cb(QueryDocumentSnapshot.fromNative(this.native.documents.objectAtIndex(i)));
685 }
686 }
687 }
688
689 toJSON() {
690 return {

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected