string slice javascript includes end 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('@'));