Skip to main content

trimStart

Removes the given substring from a string's beginning.

trimStart(str, substring)

Parameters#

  • str: Target string
  • substring: string that needs to be removed from the beginning of str

Returns#

  • modified string