This question already has an answer here:
- Convert comma separated string to array 10 answers
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?
[javascript] string to array
? – Felix Kling Jun 5 at 17:17