Slice String JavaScript se tiver @
let email = '[email protected]'
let localPart = email.slice(0,email.indexOf('@'));
Witty Weevil
let email = '[email protected]'
let localPart = email.slice(0,email.indexOf('@'));