setup-php/node_modules/string.prototype.trimleft
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30
..
test init 2019-09-06 05:17:43 +05:30
.eslintrc init 2019-09-06 05:17:43 +05:30
.jscs.json init 2019-09-06 05:17:43 +05:30
.npmignore init 2019-09-06 05:17:43 +05:30
.travis.yml init 2019-09-06 05:17:43 +05:30
CHANGELOG.md init 2019-09-06 05:17:43 +05:30
implementation.js init 2019-09-06 05:17:43 +05:30
index.js init 2019-09-06 05:17:43 +05:30
LICENSE init 2019-09-06 05:17:43 +05:30
package.json init 2019-09-06 05:17:43 +05:30
polyfill.js init 2019-09-06 05:17:43 +05:30
README.md init 2019-09-06 05:17:43 +05:30
shim.js init 2019-09-06 05:17:43 +05:30

String.prototype.trimLeft Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

A spec-proposal-compliant String.prototype.trimLeft shim. Invoke its "shim" method to shim String.prototype.trimLeft 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 trimLeft = require('string.prototype.trimleft');

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

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

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

Tests

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