trim_left

This function can be used to remove all white-space characters from the start of a string. Whitespace characters include spaces, tabs, new-line characters etc.

This function does not generate a change.

Function

str.trim_left()

Arguments

None

Return value

Returns a new string with whitespace characters removed from the start of the string.

See also

Example

Example using trim_left():

'  Hello World!!  '.trim_left();

Return value in JSON format

"Hello World!!  "