isValidCpf = (cpf) -> if !cpf return false cpf = cpf.replace(/\D/g,'') if cpf.length != 11 return false soma = 0 resto = 0
isValidCnpj = (cnpj) -> if !cnpj return false cnpj = cnpj.replace(/[^\d]+/g,'') if cnpj == '' return false if cnpj.length != 14 &nb