/ archiveofbelonging.org / back / node_modules / string.prototype.trimend /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/2 years ago -  
[TXT]CHANGELOG.md39 years ago6.0K 
[   ]LICENSE39 years ago1.0K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[TXT]README.md39 years ago1.8Kf12eb36 documentaiton updates [كارل مبارك]
[   ]auto.js39 years ago 36  
[   ]implementation.js39 years ago448  
[   ]index.js39 years ago373  
[   ]package.json2 years ago2.9K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[   ]polyfill.js39 years ago458  
[   ]shim.js39 years ago329  
README.md

String.prototype.trimEnd Version Badge

dependency status dev dependency status License Downloads

npm badge

An ES2019-spec-compliant String.prototype.trimEnd shim. Invoke its "shim" method to shim String.prototype.trimEnd if it is unavailable.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec. In an ES6 environment, it will also work properly with Symbols.

Most common usage:

var trimEnd = require('string.prototype.trimend');

assert(trimEnd(' \t\na \t\n') === 'a \t\n');

if (!String.prototype.trimEnd) {
    trimEnd.shim();
}

assert(trimEnd(' \t\na \t\n ') === ' \t\na \t\n '.trimEnd());

Tests

Simply clone the repo, npm install, and run npm test

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80