Standard LibraryTypesstringMethodsltrimOn this pageltrim Method of string. ltrim() -> Object Removes whitespace from the beginning of a string. Returns A left-trimmed string. Example var value = " bob"value.ltrim()//-> bob