import { ControlContainer , ControlValueAccessor , CheckboxControlValueAccessor , SelectControlValueAccessor , SelectMultipleControlValueAccessor , RadioControlValueAccessor , } from '@angular/forms' ; export function controlPath ( name , parent ) { return [ ... ( parent . path || [ ] ) , name ] ; } const BUILTIN_ACCESSORS = [ CheckboxControlValueAccessor , SelectControlValueAccessor , SelectMultipleControlValueAccessor , RadioControlValueAccessor , ] ; export function isBuiltInAccessor ( valueAccessor ) { return BUILTIN_ACCESSORS . some ( a => valueAccessor . constructor === a ) ; }