Travis status Dependency status devDependency status npm version ## trim-left-x This method removes whitespace from the left end of a string. **Version**: 3.0.0 **Author**: Xotic750 **License**: [MIT](<https://opensource.org/licenses/MIT>) **Copyright**: Xotic750 * [trim-left-x](#module_trim-left-x) * [`.trimLeft`](#module_trim-left-x.trimLeft) * [`.trimLeft2016`](#module_trim-left-x.trimLeft2016) ⇒ string * [`.trimLeft2018`](#module_trim-left-x.trimLeft2018) ⇒ string ### `trim-left-x.trimLeft` A reference to leftTrim2018. **Kind**: static property of [trim-left-x](#module_trim-left-x) ### `trim-left-x.trimLeft2016` ⇒ string This method removes whitespace from the left end of a string. (ES2016) **Kind**: static property of [trim-left-x](#module_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** ```js var trimLeft = require('trim-left-x').trimLeft2016; trimLeft(' \t\na \t\n') === 'a \t\n'; // true ``` ### `trim-left-x.trimLeft2018` ⇒ string This method removes whitespace from the left end of a string. (ES2018) **Kind**: static property of [trim-left-x](#module_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** ```js var trimLeft = require('trim-left-x').trimLeft2018; trimLeft(' \t\na \t\n') === 'a \t\n'; // true ```