This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validarPIS(pis) { | |
var multiplicadorBase = "3298765432"; | |
var total = 0; | |
var resto = 0; | |
var multiplicando = 0; | |
var multiplicador = 0; | |
var digito = 99; | |
// Retira a mascara | |
var numeroPIS = pis.replace(/[^\d]+/g, ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
de | |
a | |
o | |
que | |
e | |
do | |
da | |
em | |
um | |
para |