liangjiahao 8f813121f8 添加查看按钮的窗口 il y a 3 ans
..
test fcedc92fa0 完成了基础 il y a 3 ans
.editorconfig fcedc92fa0 完成了基础 il y a 3 ans
.eslintignore fcedc92fa0 完成了基础 il y a 3 ans
.eslintrc fcedc92fa0 完成了基础 il y a 3 ans
.nycrc fcedc92fa0 完成了基础 il y a 3 ans
CHANGELOG.md fcedc92fa0 完成了基础 il y a 3 ans
LICENSE fcedc92fa0 完成了基础 il y a 3 ans
README.md fcedc92fa0 完成了基础 il y a 3 ans
auto.js fcedc92fa0 完成了基础 il y a 3 ans
implementation.js fcedc92fa0 完成了基础 il y a 3 ans
index.js fcedc92fa0 完成了基础 il y a 3 ans
package.json 8f813121f8 添加查看按钮的窗口 il y a 3 ans
polyfill.js fcedc92fa0 完成了基础 il y a 3 ans
shim.js fcedc92fa0 完成了基础 il y a 3 ans

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