Sha256: 4f8a44d3402851ac042638c9aed5792b0ab3604c9fc9cd318a1da77cac15b333
Contents?: true
Size: 673 Bytes
Versions: 61
Compression:
Stored size: 673 Bytes
Contents
# trim-right [](https://travis-ci.org/sindresorhus/trim-right) > Similar to [`String#trim()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim) but removes only whitespace on the right ## Install ``` $ npm install --save trim-right ``` ## Usage ```js var trimRight = require('trim-right'); trimRight(' unicorn '); //=> ' unicorn' ``` ## Related - [`trim-left`](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left ## License MIT © [Sindre Sorhus](http://sindresorhus.com)
Version data entries
61 entries across 59 versions & 16 rubygems