Skip to content

leftTrim

leftTrim(string) → string · String

Remove whitespace from the LEFT (start) of a string only.

  • string (required): the string to trim
utlx
leftTrim("   hello   ")                  // "hello   "

Released under AGPL-3.0.