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

Method _reduceValue

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

@internal

()

Source from the content-addressed store, hash-verified

632
633 /** @internal */
634 _reduceValue(): Partial<TControl> {
635 let acc: Partial<TControl> = {};
636 return this._reduceChildren(acc, (acc, control, name) => {
637 if (control.enabled || this.disabled) {
638 acc[name] = control.value;
639 }
640 return acc;
641 });
642 }
643
644 /** @internal */
645 _reduceChildren<T, K extends keyof TControl>(

Callers 1

_updateValueMethod · 0.95

Calls 1

_reduceChildrenMethod · 0.95

Tested by

no test coverage detected