Closed selique closed 4 years ago
If is something like checking if is either CPF or a CNPJ, @roziscoding added it yesterday and I published under version 0.9.0.
import { isCPFOrCNPJ } from 'brazilian-values'
isCPFOrCNPJ('366.418.768-70')
//=> true
isCPFOrCNPJ('45.723.174/0001-10')
//=> true
isCPFOrCNPJ('411407182')
//=> false
isCPFOrCNPJ('11.111.111/1111-11')
//=> false
https://github.com/VitorLuizC/brazilian-values/releases/tag/0.9.0
@selique, can I close this issue?
request the merge funcionality isCPF with isCPNJ for validation