7.8.81 • Published 11 months ago

@erboladaiorg/porro-recusandae v7.8.81

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

String.prototype.trim Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES5 spec-compliant String.prototype.trim shim. Invoke its "shim" method to shim String.prototype.trim if it is unavailable.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec (both ES5 and current).

Most common usage:

var assert = require('assert');
var trim = require('@erboladaiorg/porro-recusandae');

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

trim.shim(); // will be a no-op if not needed

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

Engine Bugs

Some implementations of String#trim incorrectly trim zero-width spaces. This shim detects and corrects this behavior.

Tests

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

genericstty$.extendes2018tsgitignoreObject.entriespersistentassertiontslibwaapiswfmatchesaccessordropfront-endtypeofflattenmockstructuredClonewgetflag0ES2017isConcatSpreadabletoobjectglobalThistrimdefinedomtestingES2023bootstrap csscoloropensslES2016ES3mruassigncryptomkdirpoutputuploadmanagerpatchvalidawesomesauceECMAScript 2023lazyhasoffsetes8Array.prototype.filterpostcss-pluginbannerflatchaiwindowponyfillhotcloudformationtrimEndconfigformatObject.assignbindcall.gitignorejson-schema-validationfindLastIndexbyteform-validationless mixinsstatusinferencecollectionRxJSbuffertranspilerloadbalancingec2sortedlanguageObject.valuestoStringTagsimpledbfastifytypedES2018rangeerrorbrowserslistjeststyled-componentstesterECMAScriptpackagessafeglaciereventEmittercolourdataviews3css nestingfast-deep-copygetintrinsicshrinkwraplinkgesturesprototypesesvarsCSSStyleDeclarationdefinePropertyclass-validatorECMAScript 5ansibundlerArray.envtddglobal this valuequeueMicrotaskcommand-lineutilfastposecallbindes2015binarydataViewes2017package managerbufferspolyfillfixed-widthslicefunctionalhttpsgroupstringreduceragentUnderscorenpmignoretraversefromcallbackcliURLsnsserializerenumerablesetImmediatespringconcatMapnumbersymbolssomeclassnameapicolumnformsTypeBoxairbnbmergedatebddutilitiestransportspawndotenvjsondescriptorsECMAScript 6espreePromiseanimationiamtc39monorepoes2016YAMLpathbyteLengthfunction.lengthes5schemadragtoSortedregexphas-owntouchIteratorfindparserformattingtacitpropless compilercoercibleeverytypanionpredictablerapidECMAScript 3gradients cssJSONclassespropertyerrorObject.keysfast-copyuser-streamsencryptionlesscssequalityobjectgdprInt32ArraybyteOffsetinterruptskeycompilerfunctiontypescriptutilityphoneexecuteroute53assertimportexportes-abstractfullkoreanshebangReactiveXajaxprunequoteendpointES7fetchlivepicomatchieloggingefficientmoduleshandlersmoduleTypedArrayspinnersrequestemrfpsrecursivepnpm9onceprotocol-buffersawsbinECMAScript 2022mobilenativefunctionsArray.prototype.findLastIndexpushtypesprocesscore-jseventsrulesstabledirectorysharedarraybufferreact-componentnested csssetterconsumemockingvariablesjshintcallboundtermuninstallarraybufferbootstrap lessprogressECMAScript 2017jsFloat64Arrayqskinesismovei18noptimistworkspace:*call-boundexpressbundlingobjperformantTypeScriptECMAScript 2015walkReactiveExtensionsplugines-shimsindicatornodelastperformanceeventDispatchercheckArrayBuffer.prototype.slicecommanderbabelbinariesfast-deep-cloneeslintjsdomstoragegateway[[Prototype]]deepcopysetcomparesymboles7ES8arktypeecmascriptsignalsl10njson-schemacodesproxydayjsargvlruprivate dataarraysvalueses-shim APIgetterdeepcloneauthArray.prototype.flatMapsyntaxerrorStreamasciicomputed-typesequaldataPushnopecjklistenersArrayBuffer#slicesubprocesspositiveentriesnamereuserandomletArray.prototype.findLastignoregetoptomitwritableassertsweakmapbabel-corehelperbeanstalkexitautoscalingfastcloneexecInt8ArraymacoslocationtoolssqsRxidleredux-toolkitclassnamesmixinsSet-0installback-endArray.prototype.flatnodejsmkdirstrimRightebsenderxtermintrinsicchromehooksObjectsortmulti-packageforEachArray.prototype.containsramdaObject.getPrototypeOfqueueexpressionsiginttypedarrayECMAScript 2021namesmatchyupObservablepackage.jsonargsjoiimportselfreadablestatelessflatMapinputterminalsymlinksroutingelasticacheArray.prototype.includesslotnegativefiglettyped arrayapolloWebSocketsfantasy-landrequirejsdiffvestajvquerystring
7.8.81

11 months ago

7.8.80

11 months ago

7.8.79

11 months ago

7.8.78

11 months ago

7.8.77

11 months ago

7.8.76

11 months ago

7.8.75

11 months ago

7.8.74

11 months ago

7.8.73

11 months ago

7.8.72

11 months ago

7.8.71

11 months ago

7.8.70

11 months ago

7.8.69

11 months ago

7.8.68

11 months ago

7.8.67

11 months ago

7.8.66

11 months ago

7.8.65

11 months ago

7.7.65

11 months ago

7.7.64

11 months ago

7.7.63

11 months ago

7.7.62

11 months ago

7.7.61

11 months ago

7.6.61

11 months ago

7.6.60

11 months ago

7.6.59

11 months ago

7.6.58

11 months ago

7.6.57

11 months ago

7.6.56

12 months ago

7.6.55

12 months ago

7.6.54

12 months ago

7.6.53

12 months ago

7.5.53

12 months ago

7.4.53

12 months ago

7.4.52

12 months ago

7.4.51

12 months ago

7.4.50

12 months ago

7.4.49

12 months ago

7.4.48

12 months ago

7.4.47

12 months ago

7.4.46

12 months ago

7.4.45

12 months ago

7.4.44

12 months ago

7.4.43

12 months ago

7.4.42

12 months ago

7.4.41

12 months ago

7.4.40

12 months ago

7.3.40

12 months ago

7.3.39

1 year ago

7.3.38

1 year ago

7.3.37

1 year ago

7.3.36

1 year ago

7.3.35

1 year ago

6.3.35

1 year ago

6.3.34

1 year ago

6.3.33

1 year ago

5.3.33

1 year ago

5.3.32

1 year ago

5.3.31

1 year ago

5.3.30

1 year ago

5.3.29

1 year ago

5.2.29

1 year ago

5.2.28

1 year ago

5.2.27

1 year ago

5.2.26

1 year ago

5.2.25

1 year ago

5.2.24

1 year ago

5.2.23

1 year ago

5.2.22

1 year ago

5.2.21

1 year ago

5.2.20

1 year ago

4.2.20

1 year ago

4.1.20

1 year ago

4.1.19

1 year ago

4.1.18

1 year ago

4.1.17

1 year ago

4.1.16

1 year ago

4.1.15

1 year ago

4.1.14

1 year ago

4.1.13

1 year ago

4.1.12

1 year ago

4.1.11

1 year ago

4.1.10

1 year ago

4.1.9

1 year ago

4.1.8

1 year ago

4.1.7

1 year ago

4.1.6

1 year ago

4.1.5

1 year ago

4.1.4

1 year ago

3.1.4

1 year ago

2.1.4

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago