You need to sign in or sign up before continuing.
Name Last Update
..
index.js Loading commit data...
license Loading commit data...
package.json Loading commit data...
readme.md Loading commit data...

trim-right Build Status

Similar to String#trim() but removes only whitespace on the right

Install

$ npm install --save trim-right

Usage

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

trimRight('  unicorn  ');
//=> '  unicorn'

Related

  • trim-left - Similar to String#trim() but removes only whitespace on the left

License

MIT © Sindre Sorhus