Skip to content

Instantly share code, notes, and snippets.

View willnaoosmith's full-sized avatar
🐧
Torvalds take the wheel 🙏🏻

William Brochensque Júnior willnaoosmith

🐧
Torvalds take the wheel 🙏🏻
View GitHub Profile
@willnaoosmith
willnaoosmith / CPF-CNPJ Formatter
Created September 28, 2020 19:19
CPF/CNPJ Formatter
UserParse(user){
const length = user.length
switch(true){
case length > 3 && length <= 6:
var ParsedUser = user.substring(0,3) + "." + user.substring(3, length)
break