I have an array like below
["abc", "stued(!)rain(!)shane", "cricket"]
How can i convert this to string by spliting on (#) like below:
"abc"
"stued"
"rain"
"shane"
"cricket"
Below is the code i have tried
var arr = ["abc", "stued(!)rain(!)shane", "cricket"];
console.log(arr.join('').split("(!)"));
I am getting abcstued,rain,shanecricket which is not the desired output