js remove space before string
snippet in javascript

js remove space before string

user8648

var str = "  Some text ";
str.trim();
// str = "Some text"