1.0.4 • Published 4 months ago

string.prototype.trimstart v1.0.4

Weekly downloads
16,685,537
License
MIT
Repository
github
Last release
4 months ago

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

es-abstractstring.prototype.trimleftvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-image@cashremit/cr-streamline-icons@almeidaa/msreact-native-template-rfbaseairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxf@phil8795/pecuniarius-apideneme323112react-native-dsphoto-modulel2forlerna@amraneze/react-instagram-loginnative-google-loginnative-apple-loginnative-kakao-login@apardellass/react-native-audio-stream@saeon/snap-menus@sung/subsequence@stansaal/ckeditor5-custom-build@igniswap/igni-swap-lib@jretts/modified-sveltejs@openpolitica/matomo-nextstnenopmoc-iusticky-scroll-catch@respondea/cordova-plugin-v-inappbrowser@geeky-apo/react-native-advanced-clipboardstart-starwars-lib@arielapaula/components@arielapaula/test@blkmarketco/components-library@bebopskull/lotide@thismr/bitmindtest-core@thirstcreative/nuxt-module@graines-digitales/nice-handsome-button@hemith/react-native-tnktailwind-vector-effect@eliteswap/token-lists@eliteswap/v2-core@fazal/ckeditor5-custom-build@torswap/tor-token-lists@buganto/client@carhoo/widget-dealersreact-native-test-module-hhhpixiu-swap-corepixiuswap-libs-sdkqa_hdd@materia-dex/materia-contracts-proxy@maujzs/branch-releasereact-native-contact-listreact-native-plugpag-wrapperreact-native-pulsator-nativereact-native-responsive-sizereact-native-is7react-native-kakao-mapsreact-native-flyyreact-native-modal-progress-bar@kylesferrazza/graphql-relay-updated@levlevin/react-portal-tooltip@linewit/vue-router-generatorvue-writervue-router-generatorbirken-react-native-community-image-editor@xswap/token-lists@xswap/v2-core@vitali_shcherbina/styled-libchain_diggerckeditor5-build-custom-strapickeditor5-build-classic-ticketckeditor5-build-classic-v-editckeditor5-click-virtualckeditor5-strapi-msgckeditor-5-imi-1cotrader-dex-sdk@dalygbarron/fish-tank@posturize/react-resizable-rotatable-draggable@cryptocode99/token-lists@datalogic/react-native-datalogic-moduledataormcthpb-plugin-socialgoogle-remakegql_din_mod@corelmax/react-native-my2c2p-sdkeasyplayer-myflowable-bpmn-modelerhubot-budaelvyjavascript-clientdiscordjs-con-selfdiscord.js-byconjesusdemoicons-vue-test
1.0.4

4 months ago

1.0.3

7 months ago

1.0.2

8 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

4 years ago

0.0.1

4 years ago