This function trims trailing spaces from a string.

Parameters:

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

Example:

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