slice string javascript if has @ code example
Example: slice string javascript if has @
let email = '[email protected]'
let localPart = email.slice(0,email.indexOf('@'));
let email = '[email protected]'
let localPart = email.slice(0,email.indexOf('@'));