Podría servir:
const mailOne = '[email protected]'
const mailTwo = '@foobar'foo@bar.com'comx'
const listMailOne = mailOne.split(".")
const listMailTwo = mailTwo.split(".")
console.log(mailOne + " is:", listMailOne.pop().length < 4)
console.log(mailTwo + " is:", listMailTwo.pop().length < 4)
Podría servir:
const mailOne = '[email protected]'
const mailTwo = '@foobar.com'
const listMailOne = mailOne.split(".")
const listMailTwo = mailTwo.split(".")
console.log(mailOne + " is:", listMailOne.pop().length < 4)
console.log(mailTwo + " is:", listMailTwo.pop().length < 4)
Podría servir:
const mailOne = '[email protected]'
const mailTwo = 'foo@bar.comx'
const listMailOne = mailOne.split(".")
const listMailTwo = mailTwo.split(".")
console.log(mailOne + " is:", listMailOne.pop().length < 4)
console.log(mailTwo + " is:", listMailTwo.pop().length < 4)