I want to split an email of user before letter
@
in Javascript especialy in angularJS. for example if its
it will turn into
blabla
can someone give me a simple example to make it?
because i must split it from API and store it as localstorage,
some of example that i find its use limitTo but can we use it to cut it in specific way from @ until end?
String.split()?