caipin 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
..
.github 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
test 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
.editorconfig 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
.eslintrc 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
.travis.yml 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
CHANGELOG.md 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
LICENSE 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
README.md 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
auto.js 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
implementation.js 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
index.js 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
package.json 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
polyfill.js 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos
shim.js 262030214c cld2_react构建中 %!s(int64=5) %!d(string=hai) anos

README.md

String.prototype.trimStart Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

An ES2019-spec-compliant String.prototype.trimStart shim. Invoke its "shim" method to shim String.prototype.trimStart 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 trimStart = require('string.prototype.trimstart');

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

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

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

Tests

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