2.0.0 • Published 5 years ago
trim-right v2.0.0
trim-right
Similar to
String#trim()but removes only whitespace on the right
Install
$ npm install trim-rightUsage
import trimRight from 'trim-right';
trimRight(' unicorn ');
//=> ' unicorn'Related
trim-left- Similar toString#trim()but removes only whitespace on the lefttrim-off-newlines- Similar toString#trim()but removes only newlines