Given the following email address -- someone@example.com -- how can I extract someone from the address using javascript?
Thank you.
string.split(separator, limit) is the method you want
"someone@example.com".split("@")[0]