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