Split strings with split.
var string = "Split me into an array"; var array = string.split(" "); console.log(array);