This function trims leading spaces from a string.

Parameters:

  • string – the string from which the leading spaces will be removed.

Example:

var myName = ltrim(" Michael");   // places "Michael" into myName
  • No labels