Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (control: AbstractControl): { [key: string]: boolean } => {
if (utilsBr.isPresent(Validators.required(control))) {
return null;
}
const v: string = control.value;
return validateBr.inscricaoestadual(v, estado) ? null : { inscricaoestadual: true };
};
}