Posts by Wesley Pimentel • 21 points
1 post
-
2
votes4
answers6781
viewsA: Why does my CNPJ validation pass this invalid value?
Just adding a bit of improvement to the @Lollipop response, just below the explanation: function validarCNPJ(cnpj) { if(cnpj == '' || cnpj == undefined || cnpj == null) { return false; } if…