MCPcopy Create free account
hub / github.com/angular/angular / isAbstractControl

Function isAbstractControl

packages/forms/src/model/abstract_model.ts:470–476  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

468 * to the `AbstractControl` class, so the class can be tree-shaken.
469 */
470export function isAbstractControl(value: unknown): value is AbstractControl {
471 return (
472 typeof value === 'object' &&
473 value !== null &&
474 (value as Record<symbol, unknown>)[ABSTRACT_CONTROL] === true
475 );
476}
477
478/**
479 * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.

Callers 1

FieldNodeContextClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected