trim-left-x (a.k.a trimStart in ES2019)
This method removes whitespace from the start of a string.
module.exports(string)
⇒ number
⏏
trim-left-x
⇒ string
This method removes whitespace from the left end of a string. (ES2019)
Kind: static property of trim-left-x
Returns: string
- The left trimmed string.
Throws:
TypeError
If string is null or undefined or not coercible.
Param | Type | Description |
---|---|---|
string | string |
The string to trim the left end whitespace from. |
Example
; console; // true