Closed adilorenzodema closed 2 years ago
Hi! How I can verify, in typescript, if a fiscal code is valid or invalid? Hi try with 'try catch', do you known a better method?
try { cf = new CodiceFiscale(control.value); return true; } catch (error) { return false }
Hi! CodiceFiscale.check(control.value) this will return a boolean
CodiceFiscale.check(control.value)
Hi! How I can verify, in typescript, if a fiscal code is valid or invalid? Hi try with 'try catch', do you known a better method?
try { cf = new CodiceFiscale(control.value); return true; } catch (error) { return false }