Slice String javascript si a @
let email = '[email protected]'
let localPart = email.slice(0,email.indexOf('@'));
Witty Weevil
let email = '[email protected]'
let localPart = email.slice(0,email.indexOf('@'));