I am asking you how to split a string using different separators and when the string is empty return just an empty space. I don't know to combine both.
All I have is:
function split(string) {
var str = string.split(/[+-*]/);
return str;
}
Example:
split("este-es+otro*ejemplo"); // => ["este", "es", "otro", "ejemplo"]
split(''); // => [""]
Thank you.