Podría servir: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> const mailOne = '[email protected]' const mailTwo = '[email protected]' const listMailOne = mailOne.split(".") const listMailTwo = mailTwo.split(".") console.log(mailOne + " is:", listMailOne.pop().length < 4) console.log(mailTwo + " is:", listMailTwo.pop().length < 4) <!-- end snippet -->