7.8.81 • Published 12 months ago

@erboladaiorg/porro-recusandae v7.8.81

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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

12 months ago

7.8.80

12 months ago

7.8.79

12 months ago

7.8.78

12 months ago

7.8.77

12 months ago

7.8.76

12 months ago

7.8.75

1 year ago

7.8.74

1 year ago

7.8.73

1 year ago

7.8.72

1 year ago

7.8.71

1 year ago

7.8.70

1 year ago

7.8.69

1 year ago

7.8.68

1 year ago

7.8.67

1 year ago

7.8.66

1 year ago

7.8.65

1 year ago

7.7.65

1 year ago

7.7.64

1 year ago

7.7.63

1 year ago

7.7.62

1 year ago

7.7.61

1 year ago

7.6.61

1 year ago

7.6.60

1 year ago

7.6.59

1 year ago

7.6.58

1 year ago

7.6.57

1 year ago

7.6.56

1 year ago

7.6.55

1 year ago

7.6.54

1 year ago

7.6.53

1 year ago

7.5.53

1 year ago

7.4.53

1 year ago

7.4.52

1 year ago

7.4.51

1 year ago

7.4.50

1 year ago

7.4.49

1 year ago

7.4.48

1 year ago

7.4.47

1 year ago

7.4.46

1 year ago

7.4.45

1 year ago

7.4.44

1 year ago

7.4.43

1 year ago

7.4.42

1 year ago

7.4.41

1 year ago

7.4.40

1 year ago

7.3.40

1 year 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