I have the following string:
var group = "one+two+three";
Each value in the string is separated by a +, and I wanted to add them separately in an array, so It could then become:
var group_array = ["one", "two", "three"];
How can I do this?
Use split() like
var group = "one+two+three";
var groupArray = group.split('+');
console.log(groupArray);
[javascript] string to array?