1.0.8 • Published 30 days ago

string.prototype.trimstart v1.0.8

Weekly downloads
16,685,537
License
MIT
Repository
github
Last release
30 days ago

String.prototype.trimStart Version Badge

github actions coverage 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.trimleftarchetype-libraryeasy-select-rnvuedragdropuploadimagesreact-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-apideneme323112@fundefund/funde_ck@ntt_app/react-native-custom-notificationreact-native-covid-sdkgql_din_modafryxiconsmutasi-bca@jttechnic/interpreter@saeon/quick-formcthpb-plugin-socialreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutilsuncoded-connectwilscanner@khalitovadel/abstract-repository@oiti/documentoscopy-react-native@respondea/cordova-plugin-v-inappbrowserquoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-string_@saaspe/componentsexpand-react-bridgeopea-bootstraapluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-2836jawwy-sdkjawwy_gamification_release@deepakorg/test@deepak757/testreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgp149-tablesklif-uimachinebeemrcapsreact-native-jawwy_samplereact-native-chenaarreact-native-responsive-sizedfeuk-frontend-manualpayutestingstyle-guide-mainfmslfn-lib-examplesrnodetprojectbloggggbiometric-stbirken-react-native-community-image-editorstock-ticker-react-widget@corelmax/react-native-my2c2p-sdksticky-scroll-catchstnenopmoc-iuboskuetlampard82boston-essary-dropdown@contagt/metismenu@con-test/react-native-concent-commonstanikionestart-starwars-libbobodoranbobunclego21cukul94crunchtazcs188-spring2022truchaindemo-test-scrncssesc-wbgcycgodscyberusuuyuqdesign-system-fitbank-450devdwi0712degeamunited28demdemsirdfeuk-frontend@cybermega/flutter-resource-manager-rs@cryptocode99/token-listsbuildblockcalmelib@davidrockefeller/pixelpioneer
1.0.8

30 days ago

1.0.7

8 months ago

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.0

6 years ago

0.0.1

6 years ago