MCPcopy Index your code
hub / github.com/angular/angular / _reduceChildren

Method _reduceChildren

packages/forms/src/model/form_group.ts:645–654  ·  view source on GitHub ↗

@internal

(
    initValue: T,
    fn: (acc: T, control: TControl[K], name: K) => T,
  )

Source from the content-addressed store, hash-verified

643
644 /** @internal */
645 _reduceChildren<T, K extends keyof TControl>(
646 initValue: T,
647 fn: (acc: T, control: TControl[K], name: K) => T,
648 ): T {
649 let res = initValue;
650 this._forEachChild((control: TControl[K], name: K) => {
651 res = fn(res, control, name);
652 });
653 return res;
654 }
655
656 /** @internal */
657 override _allControlsDisabled(): boolean {

Callers 3

getRawValueMethod · 0.95
_syncPendingControlsMethod · 0.95
_reduceValueMethod · 0.95

Calls 2

_forEachChildMethod · 0.95
fnFunction · 0.50

Tested by

no test coverage detected