Function: trimStart()
trimStart(
str):string
Defined in: string/sanitize/index.ts:190
Trims whitespace from the start of a string.
Parameters
str
string
The string to trim
Returns
string
The string with leading whitespace removed
Example
trimStart(' hello ')
// => 'hello '
trimStart('\n\t test')
// => 'test'
See
- trim - trim both ends
- trimEnd - trim trailing whitespace