f219032956 智慧照明控制系统 v1.0.0 4 éve
..
test f219032956 智慧照明控制系统 v1.0.0 4 éve
.editorconfig f219032956 智慧照明控制系统 v1.0.0 4 éve
.eslintignore f219032956 智慧照明控制系统 v1.0.0 4 éve
.eslintrc f219032956 智慧照明控制系统 v1.0.0 4 éve
.nycrc f219032956 智慧照明控制系统 v1.0.0 4 éve
CHANGELOG.md f219032956 智慧照明控制系统 v1.0.0 4 éve
LICENSE f219032956 智慧照明控制系统 v1.0.0 4 éve
README.md f219032956 智慧照明控制系统 v1.0.0 4 éve
auto.js f219032956 智慧照明控制系统 v1.0.0 4 éve
implementation.js f219032956 智慧照明控制系统 v1.0.0 4 éve
index.js f219032956 智慧照明控制系统 v1.0.0 4 éve
package.json f219032956 智慧照明控制系统 v1.0.0 4 éve
polyfill.js f219032956 智慧照明控制系统 v1.0.0 4 éve
shim.js f219032956 智慧照明控制系统 v1.0.0 4 éve

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