(value: unknown)
| 468 | * to the `AbstractControl` class, so the class can be tree-shaken. |
| 469 | */ |
| 470 | export 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`. |