Skip to content

First Word

Malexion edited this page Oct 31, 2016 · 1 revision

Retrieve the first word in a string.

var str = '   sample,  text hello'.firstWord();

console.log(str);
Clone this wiki locally