JSPM

  • Created
  • Published
  • Downloads 8483
  • Score
    100M100P100Q135360F
  • License MIT

This method removes whitespace from the right end of a string.

Package Exports

  • trim-right-x

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (trim-right-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Travis status Dependency status devDependency status npm version

trim-right-x

This method removes whitespace from the right end of a string.

Version: 2.0.1
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750

module.exports(string)string

This method removes whitespace from the right end of a string.

Kind: Exported function
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

var trimRight = require('trim-right-x');

trimRight(' \t\na \t\n') === ' \t\na'; // true