2.7.104 • Published 11 months ago

@hishprorg/ipsa-consectetur-minima v2.7.104

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('@hishprorg/ipsa-consectetur-minima');

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

ECMAScript 2018ES20230batchES2022sameValueZeroprettyObject.keysfilteryupstylingopenersortedES6ES2018sharedarraybuffermomentlook-uputil.inspectcharacterpropertiesglacierclass-validatorkeyArray.prototype.flatMapcolordatasafeconsumeObservablescloudformationcensoreslintconfigjasmineECMAScript 2015rdsconcatMapparseglobflattenkeysdeepWebSocketsdeep-clonedefinePropertytoobjectformassertresolveeventDispatcherarrayparentsappcall-boundiestdlibl10nArray.prototype.containssetroute[[Prototype]]TypeBoxinspectindicatorES2020preserve-symlinksa11yrm.envcollectionperformantdotenvmergeWeakSetvarsmatchAllthreereact animationECMAScript 3descriptionbrowsermulti-packagetypeerrorhasOwnruntimepositivecollection.es6tsES2015proxybddgraphqlstringifyequalcolorsthrottleES7es2017Object.getPrototypeOfspinnersnegative zeroobjectconcurrencyargselbregexpoffsetvalueautoscalingdescriptorsStyleSheetgroupECMAScript 2021phoneweakmapcalldom-testing-libraryglobalpicomatchInt16ArraycolumnsgesturesidjsxES2016route53testeristanbulwordbreakhooksparenttypeofebsefficientdebuggerslicemonorepoexpresshas-owntakeprivatejoizeroObject.valuesdayjsgroupByrequestdirectorysqsiteratorfileObject.fromEntriesisConcatSpreadablestyleguideJSONdomTypeScriptObject.isassertsECMAScript 5termhascallbackweaksetextendjson cacheInt32Arrayschemacircularreduxmimetypeskey partoolkitESnextqueueMicrotaskdynamodbbundlingcjkbeanstalkcopyFloat32ArraynegativeStreamglobalsobjArray.prototype.findLastespreekinesisinternal slotECMAScript 2023structuredClonepackagesettingsrgbHyBielasticacheObject.assignarktypehttpboundformsawsschemecloudtrailargvstableSymbolcommand-lineeslintplugintraversemetadatainternalxdg-openesoptimistObject.entrieses-shim APIredactcontainscreateexecECMAScript 6TypedArrayisUint32ArrayescapesyntaxArray.prototype.findLastIndextrimStartbufferartes5symlinkerrorbluebirdprivate datashebangtrimRightshimmimeprotocol-bufferslocationwarninggetArray.prototype.flatcharacterssharedeast-asian-widthutilityrandomloggerpropertyuuidRegExp.prototype.flagstapegetintrinsicaccessibilitytyped arrayminimalkarmaprefixwaapistyled-componentstypescriptfixed-widthutilitiesdataViewjsdeep-copypackage managerhelperAsyncIteratorreducerwritablecheckcore-jsstatelessvpcrm -frkey valueMapwaffigletcryptodeepclonerm -rfsuperagenthasOwnPropertyzodbytereades6prototextnumberPromisewebsitecompilerString.prototype.trimreact-testing-libraryhardlinksRFC-6455browserslistlrurateArray.prototype.includesasciidefaultqueuestartertypanionoutputagentwhatwglastfindenumerablepnpm9regular expressionsawesomesaucechanneliterationduplexupextensionidentifierspackagesviewwritereact-hookseditorcommanderArrayconcatdragconfigjsdomiconvpackage.jsonarraysworkerimportsyntaxerrorreadablestreamargumentfull-widthurleslint-pluginrobustURLiteratepyyamlbreakES2017validateredirectpromisesreact-hook-formbuffersmochawrapsnscallboundpromisetslibtaskfetchfpssesarraybufferfile systemhttpsinferenceeslintlanguagecommandreactreadableMicrosoftserializationObject.definePropertyes-abstractasyncbrowserlistkoreangetterURLSearchParamsvisualpolyfillswfloggingdataviewtypedeventsclientomitdependency managercurlprototypeio-tsfinduptrimEndperformancees2016Function.prototype.nameECMAScript 2016springsearchcloudfrontbyteOffsetjeststreamcssECMAScript 2022protobufpipeESes2018es8eventEmitterInt8ArrayestreestylewgetgetOwnPropertyDescriptorstringifierString.prototype.matchAllassignapigetPrototypeOflengthsetterObjectargumentstestinglinewrapratelimitflatpersistentstylesrangeerrorReactiveExtensionssometestspinneremojihookformi18nopenenvironmentES8chineseinstallersuperstructamazonopensfastcopyfastifyECMAScript 2017valuestypesafeWebSocketUnderscoreenderapollottypostcss-pluginvalidslotsetPrototypeOfeveryES2019mapreducequotehelpersoptionyamlchromepatchinputspeclogmruworkflowclicompareRxstringBigInt64ArrayurlsecmascriptflagstypesiamfunctionalObservablesorttrimajvcoretoArraybyteLengthfast-deep-clonenodefindLastIndexfile cachecachexdgoncecloudsearchidlestartreact posextermes-shimsextraguidmake dirnpmcolumngenericswordwrapemrnamesloadbalancingredux-toolkitECMAScript 2019typeremoveposeIteratordir256s3shrinkwrapaccessorframer_.extendfind-upserializersymlinksECMAScript 2020storagegatewayArrayBuffer.prototype.sliceenvironmentstimeendpointroutingcloudwatchqstoSortedgetoptassertionpathwhichsymbolsArrayBufferfastclonejsonexemoduleansistreams2configurablees7lockfileBigUint64ArraypostcssmoveRegExp#flagsstreamsregexxhrvariablesmkdirmkdirssequenceArray.prototype.filterUint16ArraylibphonenumberjQuerycallbindbindcharsettrimLeftinstrumentationterminalconvertsideincludespluginwidthimmermodulestc39Reflect.getPrototypeOftypedarraysreal-timerapidreuseastcall-bindbundlerJSON-SchemadefinefscoverageuninstallECMAScript 7Setutilvestfast-copysimpledbReactiveXdatastructuretapsetImmediateregulardeleteawait$.extendpopmotionArray.prototype.flattenmaplaunchloadingmkdirpworkspace:*flatMapelectroncolourlinkfunctioncoerciblewalkinglintwalkshamchromiumavaqueryUint8Arrayinvariant__proto__form-validationprunecodesfunction.lengthnopespeedgdprtddemitrmdirairbnbjsdiffchildentriesjavascriptspawnfoldericuhashtoolsbusyreducePushfast-clonedroplazydependenciesES2021diffserializetoStringTagcode pointsprogressec2jsonpathshellStreamsnameforEachjapanesemakeenvrfc4122CSSStyleDeclarationfromfast-deep-copytypedarraydebuges2015matchimmutableclonebannertouchtelephoneFloat64Arrayvalidationoptimizerrecursivecss-in-jsflaglookajaxinstallformatfullexpressionRxJSmime-dbintrinsictostringtag@@toStringTaglimitanimationprocessdateUint8ClampedArraynodejsES5WeakMapjshintnativepropthroatfullwidthunicodedeepcopyownfindLastformatting
2.6.91

11 months ago

2.6.92

11 months ago

2.6.93

11 months ago

2.6.94

11 months ago

2.6.101

11 months ago

2.6.102

11 months ago

2.6.100

11 months ago

2.6.90

11 months ago

1.3.50

1 year ago

1.5.76

12 months ago

1.3.53

1 year ago

1.5.75

12 months ago

1.3.54

1 year ago

1.3.51

1 year ago

1.3.52

1 year ago

2.6.99

11 months ago

2.6.95

11 months ago

2.6.96

11 months ago

2.6.97

11 months ago

2.6.98

11 months ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

2.7.103

11 months ago

2.7.104

11 months ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.6.80

12 months ago

1.4.60

1 year ago

1.4.62

1 year ago

1.4.61

1 year ago

1.4.64

1 year ago

1.2.41

1 year ago

1.4.63

1 year ago

1.2.42

1 year ago

1.4.66

12 months ago

1.4.65

1 year ago

1.2.40

1 year ago

1.4.68

12 months ago

1.2.45

1 year ago

1.4.67

12 months ago

1.2.46

1 year ago

1.2.43

1 year ago

1.4.69

12 months ago

1.2.44

1 year ago

1.2.49

1 year ago

1.2.47

1 year ago

1.2.48

1 year ago

1.4.71

12 months ago

1.4.70

12 months ago

1.4.73

12 months ago

1.4.72

12 months ago

1.4.75

12 months ago

1.4.74

12 months ago

1.2.50

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

1.2.26

1 year ago

2.6.80

12 months ago

2.6.81

12 months ago

2.6.82

12 months ago

1.2.29

1 year ago

2.6.83

11 months ago

1.6.77

12 months ago

1.2.30

1 year ago

1.6.76

12 months ago

1.2.31

1 year ago

1.6.79

12 months ago

1.4.55

1 year ago

1.6.78

12 months ago

1.4.54

1 year ago

2.6.88

11 months ago

1.4.57

1 year ago

1.2.34

1 year ago

2.6.89

11 months ago

1.4.56

1 year ago

1.2.35

1 year ago

2.6.103

11 months ago

1.4.59

1 year ago

1.2.32

1 year ago

1.4.58

1 year ago

1.2.33

1 year ago

2.6.84

11 months ago

1.2.38

1 year ago

1.0.15

1 year ago

2.6.85

11 months ago

1.2.39

1 year ago

1.0.14

1 year ago

2.6.86

11 months ago

1.2.36

1 year ago

2.6.87

11 months ago

1.2.37

1 year ago

1.0.13

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago