1.2.2 • Published 1 year ago
@juigorg/delectus-illum v1.2.2
String.prototype.trim 
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('@juigorg/delectus-illum');
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
toolkitkeysbinarybrowsercjkfast-deep-clonelasttypehaspathcss-in-jsruntimecall-bindfromECMAScript 2021ansiconcatRxdayjsloggertypanionassertiondescriptorespreeflatobjectformincludesUint8Arrayprivate dataes-shim APIECMAScript 2018waapiObject.getPrototypeOftslibnodeArrayBuffer.prototype.slicegdprArray.prototype.flatcallbindyamles6HyBiiamtyped arrayprotojsxtypesafezodYAMLstringifyredirectdeep-cloneio-tsCSSStyleDeclarationpromiseeslint-pluginquerystringlruECMAScript@@toStringTagcircularforkpinottyregular expressionconcatMapcallfantasy-landchromiumrds0findLastIndexreworkexpresstddtransformstreamsnumbertestglobdirectorytypeofserializationlintassertmomentObject.assignutilsselfObject.keysfastWeakMapmetadatamakenegative zeroes2018randomPromisebyteLengthbrowserlistarraybufferconsoleuninstallRxJSinputinferenceproxyloggingsymbolpicomatchasyncAsyncIteratorvarsjson-schema-validationindataViewES2015colorrobustreadableminimalenvironmentdeletereact-hook-formiteratorECMAScript 2020transpilerserializeargspushrssprogressflattendescriptionbannermkdirpjsdomobjReactiveExtensionsjsdiffES6regular expressionsgraphqldeepclonepruneyupimmerphoneECMAScript 7awsexecnamecryptoguidcollection.es6everytouchfullglobalsjson-schema-validatormonorepoclienthashJSON-SchemasymlinksbinariestoSortedvaluesvisualglobal this valuepatchviewdragECMAScript 2022utilhigher-ordershammapemreast-asian-widthspringatomiees2015lockfiletoolsthreeapolloappgetreact animationObject.fromEntriescompilerObjecttapereducerSymbolvpcwriteeslintlibphonenumbercoercibleECMAScript 20176to5sesArrayBufferlistenersworkerreal-timees5deterministicECMAScript 6json-schemafunction.lengthArray.prototype.filterregexdotenvrmonceformatparentbundlerMap.gitignoreUnderscoreswfsharedarraybufferprocessjoilocationmapreducecssvalueurltrimRightspecqueryajvprotocol-buffersreadjasmineshrinkwrapECMAScript 2023sqswalkloadbalancingjsonfetchspinnerscommand-lineArray.prototype.contains3dparserhttpsreversebufferStreamdefinepopmotionspeedeventsregularregular-expressionECMAScript 3moduleframerpolyfillinstallerfoldermanagertc39typedschemarm -frtoStringTagES2021mrunativeserializersomestyled-componentstrimStartroutingtelephoneObject.islocalprototypefast-clonecloudwatchletqueueMicrotaskenumerableregexpUint32Arrayvalidatorpipeglaciercommandercomputed-typeshttpairbnbpreprocessorbindrgbanimations3babel-corecheckestreeInt8Arraystringschememobilescheme-validationcolumnsBigUint64Arraytypeszeroa11ydiffbufferscloudtrailES2022es-shimsstyleguidestreamtermworkspace:*package.jsonzxdataviewrequirerouterpostcssslotutilitiescoreaccessibilitygetintrinsiccharactersESnextArray.prototype.findLastIndexhasOwnECMAScript 2015moveroute53nopeemitfindupcode pointscloudsearchequaltoobjectpackagespropertysimpledbURLSearchParamspureworkflowmkdirsbeanstalkponyfillec2Uint16Arrayform-validationgetteres7configurableintrinsicpostcss-plugininstrumentationimportexportsortedsafechannelstylesconsumefunctioncreatehelpersES2018plugindom-testing-libraryhookformTypeScriptdirelasticachefullwidthchaientries[[Prototype]]forEachStyleSheetvalidtrimEndinternal slotbyteOffsetloadingextendpnpm9writableboundshellwgetapitypedarrayamazonassertsexecuteoptionflagsawesomesaucearktypekoreanCSSnameswalkingnodejsmulti-packageprefixharmonyuser-streamsavaFunction.prototype.namesyntaxerrorbinRFC-6455variablesramdagetOwnPropertyDescriptordynamodbmkdirrequesterrornpmpyyamlObject.definePropertyString.prototype.matchAllparsewidthstylecollectionECMAScript 2019callbackjsdeepcopySystem.globalperformantgroupByWeakSetcodesequalityjQueryremovexhrvestexpressionfeedECMAScript 2016typescript__proto__immutablefpStreamslengthes2017redux-toolkitbdd-0stableinspectdependenciesfshas-ownArray.prototype.flattendependency managerbytei18nuuidelectroncommandeslintconfig.envistanbulInt32ArrayindicatorcloneES8idlejshint_.extendasciiflatMapBigInt64ArrayFloat64Arrayshebangcurleffect-tsfast-deep-copysource mapdebugmatchAllfull-widthisunicodetimestylingfiglettostringtagcloudfrontmodulesoffsetfastifyrfc4122256weaksetidentifiersdomcolourwhatwgcurriedsharedES7rapidchromelanguageterminalreuserestgrouputil.inspectxtermtraverseendpointpackageES2019trimcallboundES2017eventEmitterES2023es-abstractsubprocesstoReversedomitURLsymbolsefficientrecursiveclassesstarterbundlingreversednpmignoreasterisksimportgesturesquotejavascriptrangeerrorweakmapArraySetfastclonejapaneseoutputemojihelperESfpsTypeBoxIteratorObservablesgitignorestoragegatewayignorewhichsetImmediatetestingString.prototype.trimdeepkarmavarjestpositivees2016make diresWebSocketssuperagentchinesereadablestreamarraysrm -rfspinnersidemergereact-hooksautoprefixerArray.prototype.flatMapsyntaxcolumnfnmatchfind-uplookbabeltranspilehtmlTypedArrayfile systemReflect.getPrototypeOfcloudformationformssnsrulesprotobufpropdatetacitperformancereduxcall-boundArray.prototype.includesqueuees8frameworkhookseslintplugincolorsresolveargvtakecore-jsdataredactxmlreact-testing-libraryrmdirMicrosoftES2016ES3wafpropertiessuperstructvalidatesinatrawindowRegExp#flagsescapel10nchildfixed-widthWebSocketacornsetglobal objectisConcatSpreadablematchhasOwnPropertyrouteObject.entriesprivatemanipulationtoArrayclass-validatorinternalexecfilecharacter
@dramaorg/quae-dolore-nostrum@juigorg/ad-excepturi-consectetur@juigorg/asperiores-totam-adipisci@juigorg/congenial-barnacle@juigorg/delectus-impedit-corrupti@juigorg/didactic@juigorg/dignissimos-fugit-enim@juigorg/distinctio-eaque-voluptate@juigorg/distinctio-tempore-nihil@juigorg/dolorem-amet-ut@juigorg/earum-tempore-impedit@juigorg/eos-cum-optio@juigorg/facere-eveniet-laudantium@juigorg/fuga-vel-ipsam@juigorg/fugit-est-ut@juigorg/in-aliquid-dolorem@juigorg/in-at-quidem@juigorg/laboriosam-iste-eligendi@juigorg/laboriosam-odit-minus@juigorg/musical-happiness@juigorg/neque-doloribus-nostrum@juigorg/nisi-molestiae-ut@juigorg/pariatur-consequuntur-repudiandae@juigorg/perferendis-sint-fugit@juigorg/reimagined-fishstick@juigorg/repellendus-commodi-iste@juigorg/repellendus-repellat-dolore@juigorg/sit-nam-neque@juigorg/succotash@juigorg/veniam-alias-deleniti@juigorg/voluptas-deserunt-qui@kollorg/nihil-veniam-deserunt@swenkerorg/nulla-voluptates-voluptates@zitterorg/eum-veritatis-placeat@zitterorg/illum-perferendis-consecteturanalsorhost-simple-bscorcojs-qrcodecorcojs-qrcode-logodable-effectfiran-loggingsimple-assi-animationsimple-prompts-web3