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

Method forEach

packages/firebase-database/index.android.ts:604–616  ·  view source on GitHub ↗
(action: (child: DataSnapshot) => true | undefined)

Source from the content-addressed store, hash-verified

602 };
603 }
604 forEach(action: (child: DataSnapshot) => true | undefined): boolean {
605 const iterator = this.native.getChildren().iterator();
606 let stopEnumerate = false;
607 while (!stopEnumerate) {
608 if (iterator.hasNext()) {
609 const object = iterator.next();
610 stopEnumerate = action(DataSnapshot.fromNative(object));
611 } else {
612 stopEnumerate = true;
613 }
614 }
615 return stopEnumerate;
616 }
617 getPriority(): string | number {
618 return this.native.getPriority();
619 }

Callers

nothing calls this directly

Calls 2

nextMethod · 0.45
fromNativeMethod · 0.45

Tested by

no test coverage detected