String.prototype.trimLeft() - mkloubert/jsToolbox GitHub Wiki
String.prototype.trimLeft() method
Removes all whitespace at the beginning.
Syntax
String.prototype.trimLeft();
Result
The trimmed string.
Examples
var s = ' 5979 ';
// '5979 '
var res = s.trimLeft();