You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
837816638@qq.com b02b851162
工商大学管理系统代码
5 years ago
..
.github/workflows 工商大学管理系统代码 5 years ago
test 工商大学管理系统代码 5 years ago
.editorconfig 工商大学管理系统代码 5 years ago
.eslintrc 工商大学管理系统代码 5 years ago
.travis.yml 工商大学管理系统代码 5 years ago
CHANGELOG.md 工商大学管理系统代码 5 years ago
LICENSE 工商大学管理系统代码 5 years ago
README.md 工商大学管理系统代码 5 years ago
auto.js 工商大学管理系统代码 5 years ago
implementation.js 工商大学管理系统代码 5 years ago
index.js 工商大学管理系统代码 5 years ago
package.json 工商大学管理系统代码 5 years ago
polyfill.js 工商大学管理系统代码 5 years ago
shim.js 工商大学管理系统代码 5 years ago

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