Split string JavaScript

> Explode string
> Divide string

Description
Split string around matches of a given regular expression.


var str = "Hello world";
var parts = str.split(" ");
SEE ALSO