Posts by Ivan Maia • 181 points
1 post
-
18
votes6
answers21461
viewsA: Format numerical sequence in CPF format with tabs using javascript
I’ve been using regex to do this type of formatting for some time and it has served me well. var cpf = "00000000000"; return console.log(formataCPF(cpf)); function formataCPF(cpf){ //retira os…
javascriptanswered Ivan Maia 181