trimStart (Function)

Signature: trimStart(s: string) -> string

Description: Removes leading ASCII whitespace.

Parameters

  • s (string): The string to trim

Returns: string

Example

print(trimStart("  hi  "))  // "hi  "
print (trimStart "  hi  ")  // "hi  "