[Edit]
+
0
-
0
js split string to array
1 2 3 4var text = 'This is some text...'; var array = text.split(/\b/); // begin or end of word separates string console.log(array); // ['This',' ','is',' ','some',' ','text','...']
1 2 3 4var text = 'This is some text...'; var array = text.split(/\b/); // begin or end of word separates string console.log(array); // ['This',' ','is',' ','some',' ','text','...']