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

README.md

String.prototype.trimStart Version Badge

dependency status dev dependency status License Downloads

npm badge

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