Similar to
String#trim()
but removes only whitespace on the right
$ npm install --save trim-right
var trimRight = require('trim-right');
trimRight(' unicorn ');
//=> ' unicorn'
trim-left
- Similar to String#trim()
but removes only whitespace on the leftMIT © Sindre Sorhus