JS Split Text на пространствах

var string = "text to split";
var words = string.split(" ");
Rich Rhinoceros