Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

sindresorhus/trim-right

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated in favor of String#trimEnd.


trim-right

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

Install

$ npm install trim-right

Usage

import trimRight from 'trim-right';

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

Related

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

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •