How to use Ltrim In Javascirpt

var strTemp = " Left padded string";

alert(strTemp);

strTemp = LTrim(strTemp);

alert(strTemp);