Better alternativeSee documentation for alternatives Documentation
lodash.trimend v4.18.0
The Lodash method _.trimEnd exported as a Node.js module.
Installation
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.trimend
In Node.js:
var trimEnd = require('lodash.trimend');
See the documentation or package source for more details.