## trim-right-x
This method removes whitespace from the right end of a string.
**Version**: 3.0.0
**Author**: Xotic750
**License**: [MIT](<https://opensource.org/licenses/MIT>)
**Copyright**: Xotic750
* [trim-right-x](#module_trim-right-x)
* [`.trimRight`](#module_trim-right-x.trimRight)
* [`.trimRight2016`](#module_trim-right-x.trimRight2016) ⇒ string
* [`.trimRight2018`](#module_trim-right-x.trimRight2018) ⇒ string
### `trim-right-x.trimRight`
A reference to trimRight2018.
**Kind**: static property of [trim-right-x](#module_trim-right-x)
### `trim-right-x.trimRight2016` ⇒ string
This method removes whitespace from the right end of a string. (ES2016)
**Kind**: static property of [trim-right-x](#module_trim-right-x)
**Returns**: string - The right trimmed string.
**Throws**:
- TypeError If string is null or undefined or not coercible.
| Param | Type | Description |
| --- | --- | --- |
| string | string | The string to trim the right end whitespace from. |
**Example**
```js
var trimRight = require('trim-right-x');
trimRight(' \t\na \t\n') === ' \t\na'; // true
```
### `trim-right-x.trimRight2018` ⇒ string
This method removes whitespace from the right end of a string. (ES2018)
**Kind**: static property of [trim-right-x](#module_trim-right-x)
**Returns**: string - The right trimmed string.
**Throws**:
- TypeError If string is null or undefined or not coercible.
| Param | Type | Description |
| --- | --- | --- |
| string | string | The string to trim the right end whitespace from. |
**Example**
```js
var trimRight = require('trim-right-x');
trimRight(' \t\na \t\n') === ' \t\na'; // true
```