[Edit]
+
0
-
0
js split string to array
1 2 3 4var text = 'This is some text...'; var array = text.split(/\b/, 2); // maximum result array size will be 2 console.log(array); // ['This',' ']
1 2 3 4var text = 'This is some text...'; var array = text.split(/\b/, 2); // maximum result array size will be 2 console.log(array); // ['This',' ']