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

Method forEach

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

Source from the content-addressed store, hash-verified

574 }
575
576 forEach(action: (child: DataSnapshot) => true | undefined): boolean {
577 let didStop = false;
578 const children = this.native.children;
579 let object = children.nextObject();
580 while (object) {
581 didStop = action(DataSnapshot.fromNative(object));
582 if (didStop || !object) {
583 break;
584 }
585 object = children.nextObject();
586 }
587 if (didStop) {
588 return true;
589 }
590 if (!object) {
591 return false;
592 }
593 }
594
595 getPriority(): string | number {
596 return this.native.priority;

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected