JS Split Text sur les espaces

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