PC/node_modules/trim-right
2026-01-26 23:20:48 +08:00
..
index.js chushihua 2026-01-26 23:20:48 +08:00
license chushihua 2026-01-26 23:20:48 +08:00
package.json chushihua 2026-01-26 23:20:48 +08:00
readme.md chushihua 2026-01-26 23:20:48 +08:00

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'
  • trim-left - Similar to String#trim() but removes only whitespace on the left

License

MIT © Sindre Sorhus