/ stream.nieuweinstituut.nl / node_modules / string.prototype.trimstart /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/2 years ago -  
[TXT]CHANGELOG.md39 years ago6.1K 
[   ]LICENSE39 years ago1.0K 
[TXT]README.md39 years ago1.9Kd768d73 docs [كارل مبارك]
[   ]auto.js39 years ago 36  
[   ]implementation.js39 years ago454  
[   ]index.js39 years ago373 3e510ca test new git [كارل مبارك]
[   ]package.json2 years ago3.0K3e510ca test new git [كارل مبارك]
[   ]polyfill.js39 years ago463  
[   ]shim.js39 years ago337  
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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80