Deprecated in favor of String#trimEnd
.
Similar to
String#trim()
but removes only whitespace on the right
$ npm install trim-right
import trimRight from 'trim-right';
trimRight(' unicorn ');
//=> ' unicorn'
trim-left
- Similar toString#trim()
but removes only whitespace on the lefttrim-off-newlines
- Similar toString#trim()
but removes only newlines
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.