5.6.98 • Published 12 months ago

@erboladaiorg/odit-doloremque v5.6.98

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

@erboladaiorg/odit-doloremque Version Badge

dependency status dev dependency status License Downloads

npm badge

An ESnext spec-compliant Array.prototype.toSorted shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the proposed spec.

Because Array.prototype.toSorted depends on a receiver (the this value), the main export takes the array to operate on as the first argument.

Getting started

npm install --save @erboladaiorg/odit-doloremque

Usage/Examples

var toSorted = require('@erboladaiorg/odit-doloremque');
var assert = require('assert');

var input = [5, 4, 3, 2, 1, 0];

var output = toSorted(input);

assert.deepEqual(output, [0, 1, 2, 3, 4, 5]);
assert.notEqual(output, input);
assert.deepEqual(input, [5, 4, 3, 2, 1, 0]);
var toSorted = require('@erboladaiorg/odit-doloremque');
var assert = require('assert');
/* when Array#toSorted is not present */
delete Array.prototype.toSorted;
var shimmed = toSorted.shim();

assert.equal(shimmed, toSorted.getPolyfill());
assert.deepEqual(input.toSorted(), toSorted(input));
var toSorted = require('@erboladaiorg/odit-doloremque');
var assert = require('assert');
/* when Array#toSorted is present */
var shimmed = toSorted.shim();

assert.equal(shimmed, Array.prototype.toSorted);
assert.deepEqual(input.toSorted(), toSorted(input));

Tests

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

equalityhasOwntypedinternal slottrimRightAsyncIteratorajvfindupstringifyreadable__proto__containsboundsideformawesomesaucereducerjson-schema-validatorimporttypesafeweakmapelbES2015esECMAScript 2015getoptartprototypegetPrototypeOfmanagerhtmlqueryebsRxJSreal-timextermchinesecsstakedotenvvalidatortrimStartArray.prototype.flatMapTypeScriptanimationcompilerjsxclassnameroute53specimportexportarrayObject.assignvalidateremovetypeofisConcatSpreadableprotocol-buffersdescriptorsapollosubprocessjasminechannelshamjavascripttc39east-asian-widthstylenodejsbindloadingjshintcreatebinaryjapanesefunctionsArray.prototype.containsspinneraccessoreslintpackagesarktypemapupimmutabledeepcopyrouterroutingjoischemaform-validationpackagewindowES2016symbolpopmotiondatapositiveestreehelperclassesexecfilespinnersclientgenericsmapreduceSystem.globalnpmignorefastclonetypeerrorfunctiones8typed arrayvisualtranspileserializeyamles-shim APIdifftapehardlinksownpicomatchfixed-widthtermworkflowcompareprettybeanstalkdynamodbes2017ES2022symlinksjQuerycloudtrailSymbolutilitiesSymbol.toStringTagES8mrucliutilsyntaxerrorObservablesvarscollectionqsESnextUint8ClampedArrayconcatworkspace:*columnfnmatchavaenvironmentpostcssexectextfind-upemitrobustObject.valuescollection.es6propertiestypedarrayredux-toolkittransformrfc4122columnssource mapponyfillcoreextendelectrondeepdescriptorfpsharedreuserouteespreepurereact posematchesmetadataentriesdataViewassignchromiumstringcharactersformattingbyteOffsethooksistanbulkarmaoffsetreduxECMAScript 2017eventsiammomentECMAScript 6commandergraphqlidramdatoSortedbinariesfast-deep-clonecommand-lineautoprefixerschemereworkdirsameValueZerovalidemojiArray.prototype.flatonceArrayBuffer.prototype.slicecallbackUint32Arrayregular expressionsArray.prototype.findLastECMAScript 5parentstypanionYAMLrulessuperstructpinoArrayBuffer#sliceInt16ArraypipeArray.prototype.filterReactiveXrangeerrorprefixgettersettingsprotorestfulprivate dataerrorECMAScript 2021tacitserializationnamesexecuteFunction.prototype.nameenvwhatwgcloudwatchpreprocessorES3regexcjkwhichprotobufECMAScript 2018asterisksflatMapObject.keyssimpledbcomputed-typesECMAScriptlistenersECMAScript 2020ignoreString.prototype.matchAllUint8ArrayflatjsisterminaljestzodtoReversedfullwidthcensorawsenumerablewritedeep-copyinbyteLengthspringshebangescapeglobal objectiteratorinspectspeedtoolscode pointskoreancallboundStreamsstableObjectfeedchaifigletObject.fromEntriessesconsoleinstallpatchtrimEndcallapiurllockfilecheckprocessobjlooks3sharedarraybufferECMAScript 2023core-jsstyled-componentsdomio-tsthreeglobalpoint-freepushnativeswfdelete.gitignoreECMAScript 2019postcss-pluginrssprophasOwnPropertyfindLastbyteconfigurablettyletoptionargumentslotminimalworkergdprES2019Object.entriesPromiseprogresses2018react animationcloudsearchparsetslibfunction.lengthvalidationgetintrinsicStyleSheetsortedlibphonenumberWeakSethttpsastkeyvaluereadablestreamgroupgitignorefiledeterministicansiSetbrowserajaxsliceparserRegExp.prototype.flagsqueueES50findcallbindfromtouchconfigpathinferencefantasy-landdefinePropertybinendpointmochaequalfastbrowserslist_.extendtapharmonyes-shimsdefinevesttrimieconstefficientdayjshashfastcopysqsargvtelephoneregular expressionmoveconcatMapwgetReflect.getPrototypeOfWeakMapmodulehttpobjectshellURLSearchParamselasticachelruFloat64ArraybabelvpceventDispatcher6to5framerbundlerObject.isperformantcss-in-jswalkuninstallassertionsafees-abstractacornkinesisincludesFloat32ArraydateES2021matchwaapifssomeclass-validatorcloudfrontec2commandwarningfiltershrinkwrapspawnrm -frwritablecircularWebSocketdeep-clonesinatravartransporttestUnderscorestyleguidemkdirprandomtestera11yrmmodulesString.prototype.trimcopyeveryeslint-pluginreversedObservableforEachecmascriptglobmkdirguiduser-streamsenderes6debugdirectorynopeeslintpluginarraysmulti-packagepromiseaccessibilityCSSStyleDeclarationproxycoercibletypebuffersdependenciesdescriptiontddvaluesjsdiffframeworkfunctionalamazonselfJSONrgbObject.getPrototypeOfrapidWebSocketsstreamsTypedArrayloggerURLqueueMicrotaskjson-schemahelpersformatpyyamlgettypescriptreduceprunenpm[[Prototype]]MicrosoftquoteidentifiersredirectgroupByES7wafArray.prototype.flattenuuidnegative zeroeffect-tsHyBimake dirfps.envdebuggeromitparentemrrm -rfglobalThis$.extendcoverageindicatorBigInt64ArraybufferinstallerES2018weaksetprivaterecursivestylesjsonschemareact-testing-librarywidthbddBigUint64ArrayUint16Arrayhigher-ordertsglacierArray.prototype.includesscheme-validationcurried-0lengthES2017Arrayvariableskeysatommonoreporeacti18nexpressionairbnbsuperagentIteratorasyncfulloptimizerautoscalingreact-hook-formlook-upclassnamesregular-expressionclonesetternegativesortreversenodeES2023agentes5Object.definePropertyES6walkingimmertestingxmlcharacterRFC-6455flattenconsumel10nfast-copycolorsgesturesdom-testing-libraryshimglobalsbusyloadbalancingcall-boundsyntaxjson-schema-validationphoneregexpzxtimelintstarterrequireloghookformextrazerodependency managerarraybufferchildECMAScript 2016performanceidleStreaminputfetchReactiveExtensionsplugin256has-owntranspilercolorECMAScript 2022call-bindcolourmatchAllfast-deep-copyeslintconfigxhrhasfastifyrmdirmergejson3dbabel-corepnpm9folderstringifiergetOwnPropertyDescriptordeepclonewebfast-cloneinvariantRxflagsES2020ECMAScript 3typesreadtoStringTagcryptotraversestreamredactmobileiteratelocationPushsetImmediatebannertoobjectdataviewinstrumentationlinkeventEmitterruntimeInt8ArraymkdirsargsdropinternalasciibundlingforksnsJSON-Schemaexpressserializeres2016trimLeftstoragegatewayArray.prototype.findLastIndexoutputfindLastIndexes2015assertsloggingpolyfillformsfull-widthsetPrototypeOfInt32Arraypose@@toStringTagmanipulationcodestoolkitfile systemes7curlquerystringlocalstylingutil.inspectTypeBoxCSStypedarraysmakesymbolsyuptostringtagESlastdragcacheflagECMAScript 7react-hooksutilscloudformationoptimistenvironmentsglobal this valueRegExp#flagsbrowserlist
5.6.98

12 months ago

5.6.97

12 months ago

5.6.96

12 months ago

5.6.95

12 months ago

5.6.94

12 months ago

5.6.93

12 months ago

5.6.92

12 months ago

5.6.91

1 year ago

5.6.90

1 year ago

5.6.89

1 year ago

5.6.88

1 year ago

5.6.87

1 year ago

5.6.86

1 year ago

5.6.85

1 year ago

5.6.84

1 year ago

5.6.83

1 year ago

5.6.82

1 year ago

5.6.81

1 year ago

5.6.80

1 year ago

5.5.80

1 year ago

5.5.79

1 year ago

5.5.78

1 year ago

5.5.77

1 year ago

5.5.76

1 year ago

5.5.75

1 year ago

5.4.75

1 year ago

5.4.74

1 year ago

5.4.73

1 year ago

5.4.72

1 year ago

5.4.71

1 year ago

5.4.70

1 year ago

5.3.70

1 year ago

5.3.69

1 year ago

5.3.68

1 year ago

5.3.67

1 year ago

5.3.66

1 year ago

5.3.65

1 year ago

5.3.64

1 year ago

5.3.63

1 year ago

5.3.62

1 year ago

5.3.61

1 year ago

5.2.61

1 year ago

5.2.60

1 year ago

4.2.60

1 year ago

4.2.59

1 year ago

4.2.58

1 year ago

4.2.57

1 year ago

4.2.56

1 year ago

4.2.55

1 year ago

4.2.54

1 year ago

4.2.53

1 year ago

4.2.52

1 year ago

4.2.51

1 year ago

4.2.50

1 year ago

4.2.49

1 year ago

4.2.48

1 year ago

4.2.47

1 year ago

4.2.46

1 year ago

3.2.46

1 year ago

3.2.45

1 year ago

3.2.44

1 year ago

3.2.43

1 year ago

2.2.43

1 year ago

2.2.42

1 year ago

2.2.41

1 year ago

2.2.40

1 year ago

2.2.39

1 year ago

2.2.38

1 year ago

2.2.37

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

1.2.24

1 year ago

1.1.24

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

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

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