6.9.96 • Published 2 years ago

@taktikorg/itaque-accusamus v6.9.96

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@taktikorg/itaque-accusamus 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 @taktikorg/itaque-accusamus

Usage/Examples

var toSorted = require('@taktikorg/itaque-accusamus');
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('@taktikorg/itaque-accusamus');
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('@taktikorg/itaque-accusamus');
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

Symbol.toStringTagfixed-widthdependency managerschemeFloat32Arraystreamhelperdeep-clonees-abstractES6valueeveryES5springMapansicommandermergedebugger__proto__uuidECMAScriptargsdayjsflatreducerassertArray.prototype.flattenexpression0zxperformanteslintroutingrestfulmapreducecollectionArray.prototype.findLastIndexstringifychromiumframeworkreactcolorcloudformationECMAScript 2018getoptwarningecmascriptrgbponyfillworkflowwaapiArrayBuffer#sliceoutputyamltrimRightTypeBoxjQueryESArraymonoreponativeinvariantgettouchresolveURLpathES2018ReactiveExtensionsmkdirnegative zeroreal-timeinternal slotexecfilechaioptionemojicolorskeychildECMAScript 2020valuesstylingArrayBuffer.prototype.slicetypanioncloneforEachzeroarraybufferstreamsrdsredactflattenUint16ArrayCSSArray.prototype.flatMapdiffloggersetPrototypeOfcode pointseslint-plugingdprrmdiracorntoReversedreworkjson-schema-validatorisConcatSpreadabletypeddateajaxartshimwidthrandomautoprefixerregular expressiongetOwnPropertyDescriptortranspilerglobal objectguidstoragegatewayclassnamechanneldynamodbflagsmomentposedeterministicwafminimaldeepcopyUint8ClampedArrayObservablelistenersstringrmdescriptionjestomitinferencecall-bindObject.assignutilityStyleSheetreduxhttpES2019classnamescollection.es6mobilefind-up6to5babel-corefastcopyshrinkwrapInt32Arrayhookformloggingfull-widthramdaObject.isHyBichromeassignES7entriesspeedxmlrm -rfphoneshamuser-streamsvestpackage managertoolsieeventDispatcherprunecommandtestercharactersregular expressionsshellmatchesclassesbufferglobalsimpledbroutestyles-0eslintconfigsafeserializercreatecallcoerciblewriteespreeglobpushpolyfillautoscalingbeanstalkBigInt64ArraybundlingflatMapbusyconsumedeep-copyWebSockettermframerindicatorhtmlfantasy-landtslibenvfunctionexpressemrjapaneseimportFloat64Arrayjsxperformanceajvcachestyleguidedomdefine3djson-schemaswfrequirehashtddmrudirSethardlinksspinnerArray.prototype.containssameValueZeropatchcomputed-typeshasOwnPropertypropwhichbabelbannereventsFunction.prototype.name_.extendobjectlogpinofastclonelibphonenumberthreelockfileString.prototype.trimreact-hook-formmetadataasynctimecallbackfast-deep-cloneenumerablerouterjsonObject.getPrototypeOfcircularsetImmediateselfreuseES8promisenumberxhrdependenciesJSON-SchematypeES2016picomatchfile systemiteratesnsavaObject.keysCSSStyleDeclarationhascryptolocationstyleformatidargumentPromisecore-jsfastcharacterquotecurriedTypeScriptclientinternaltoArrayreadablestreamstablesqsquerystringpyyamlsettingsjson-schema-validationArray.prototype.filtergraphqlfindbinarygroupBypositiveglobalsserializedatavalidateconfigRx256callbindupwalkreact posepostcss-pluginvpcpropertiesjsdomfeedredux-toolkitrss[[Prototype]]arrayscommand-lineendpointio-tssetterfpsutil.inspectequalec2uninstalltyped arrayloadbalancingwhatwgBigUint64ArrayhooksexecArray.prototype.includessuperstructURLSearchParamsES2020packageawesomesaucevalidrecursiveintrinsices8utilitieswalkingpackagessescolumnsjsmkdirpsetrfc4122es6validatorextraschemaeslintpluginECMAScript 2023dataViewIteratorconststructuredCloneES2022chineselanguageeffect-tsbyteOffsetimportexportparseproxybundlerweaksetcensorlengthcjkregular-expressiontrimchecktransformgetintrinsicrapidinlastgesturessorttacitprotosharedarraybufferisendertoobjectcloudfrontvalidationownArray.prototype.findLasttypeofRxJSiamtelephonewebmkdirstrimEndurlqueueregulareventEmittergenericsasciiloadingforkcompareoptimistredirectmanagerfsnpmreadfindupfplinkwritable$.extendES3ECMAScript 5call-boundassertionamazonparentsutilstypeerrorAsyncIteratorviewnodefindLastIndexdom-testing-libraryawsapireact animationsuperagentelasticachecloudwatchfast-deep-copycontainsatomconfigurable.gitignorebindi18nWeakMapglacierappfromnegativeES2015ECMAScript 7Uint8Arrayhelpersapolloes-shimssinatraclass-validatortypedarrayscoveragelintprocesspipeformattingglobal this valuefullObject.fromEntriesObject.definePropertyRFC-6455point-freedirectorytypesObjectdescriptorsObject.entriesaccessibilityes5es2017stringifiersource mapfilterdataviewgetPrototypeOfnameskarmatypescriptkeysdroptransportanimation.envdefinePropertybytees7ECMAScript 6environmentimmutableECMAScript 2015l10nes2015gitignorepuretypedarrayrangeerrorbinariesvisualhigher-ordersearchrobustES2021columnharmonyjshintcompilercodesfast-cloneStreamsconcatMapjsdiffjasminecallbounddeleteshebangpackage.jsonreduceECMAScript 2017concatprogresses-shim APIlook-upstartercsssubprocessreact-testing-libraryinstallerprototypeesastdotenvidlehasOwnargvpreprocessordeepcloneprotobufexecutefigletnpmignoreReactiveXtapprefixtoolkitreversefunctionallruruntimepopmotionreadableparserletmochadraginputqueueMicrotaskString.prototype.matchAllagentfullwidthRegExp#flagsenvironmentsfunction.lengthbyteLengthmodulesmatchkoreanvariablesfast-copylookUint32ArrayassertsObservablesemittesttraverseStreamlocaltakekinesisslotinstrumentationprivatedescriptorshareddeepsyntaxArrayBuffertrimStartjsonschemarulesquerysyntaxerrorregextsweakmapcolourtostringtagasterisksformsmodulebrowserlistJSONoffsetcliregexpinstallterminalbuffershas-ownonceWeakSetbinspecmulti-packageECMAScript 2022namebrowserslistoptimizerform-validationincludeswindowES2017equalityebsconsolesymbolsreact-hookseast-asian-widthMicrosoftes2016typesafesomecloudtrailbrowserreversedWebSocketsignoremovespawnrm -fres2018protocol-buffersboundSystem.globalefficientunicodeECMAScript 3istanbulimmercoreRegExp.prototype.flagstoSortedroute53toStringTagvarTypedArraybddtrimLeftYAMLtextObject.valuescloudsearchpostcssworkerPushsortedmaphttpscopyArray.prototype.flatsideaccessors3fnmatchxtermremovejoiyupReflect.getPrototypeOfspinnersUnderscorea11yidentifierserrortranspilefastifySymbolform@@toStringTagstyled-componentsInt16Arraypnpm9arrayinspectcss-in-jstapeutildebugparentsymlinksescapettyslicecurltestingECMAScript 2019matchAllairbnbobjfunctionselbprettygetterInt8ArrayECMAScript 2016javascriptfetchserializationelectronprivate datamaketc39wgetvarszodplugingrouppropertyECMAScript 2021
6.9.96

2 years ago

6.9.95

2 years ago

6.8.95

2 years ago

6.8.94

2 years ago

6.8.93

2 years ago

6.8.92

2 years ago

6.8.91

2 years ago

6.8.90

2 years ago

6.8.89

2 years ago

6.8.88

2 years ago

6.7.88

2 years ago

6.7.87

2 years ago

6.7.86

2 years ago

6.7.85

2 years ago

6.7.84

2 years ago

5.7.84

2 years ago

5.7.83

2 years ago

5.7.82

2 years ago

5.7.81

2 years ago

5.7.80

2 years ago

5.7.79

2 years ago

5.7.78

2 years ago

5.7.77

2 years ago

5.7.76

2 years ago

5.7.75

2 years ago

5.7.74

2 years ago

5.7.73

2 years ago

5.7.72

2 years ago

5.7.71

2 years ago

5.7.70

2 years ago

5.7.69

2 years ago

5.7.68

2 years ago

5.7.67

2 years ago

5.7.66

2 years ago

5.7.65

2 years ago

5.7.64

2 years ago

5.6.64

2 years ago

5.6.63

2 years ago

5.6.62

2 years ago

5.6.61

2 years ago

5.6.60

2 years ago

4.6.60

2 years ago

4.6.59

2 years ago

4.6.58

2 years ago

4.6.57

2 years ago

3.6.57

2 years ago

3.6.56

2 years ago

3.6.55

2 years ago

3.6.54

2 years ago

3.6.53

2 years ago

3.6.52

2 years ago

3.6.51

2 years ago

3.6.50

2 years ago

3.6.49

2 years ago

3.6.48

2 years ago

3.6.47

2 years ago

3.6.46

2 years ago

3.6.45

2 years ago

3.6.44

2 years ago

3.6.43

2 years ago

3.5.43

2 years ago

3.5.42

2 years ago

3.4.42

2 years ago

3.4.41

2 years ago

3.4.40

2 years ago

3.3.40

2 years ago

3.3.39

2 years ago

3.2.39

2 years ago

3.2.38

2 years ago

3.2.37

2 years ago

2.2.37

2 years ago

2.2.36

2 years ago

2.2.35

2 years ago

2.2.34

2 years ago

2.2.33

2 years ago

2.2.32

2 years ago

2.2.31

2 years ago

2.2.30

2 years ago

2.2.29

2 years ago

2.2.28

2 years ago

2.2.27

2 years ago

2.2.26

2 years ago

2.2.25

2 years ago

2.2.24

2 years ago

2.2.23

2 years ago

2.2.22

2 years ago

2.2.21

2 years ago

2.2.20

2 years ago

2.2.19

2 years ago

2.2.18

2 years ago

2.2.17

2 years ago

2.2.16

2 years ago

2.1.16

2 years ago

2.1.15

2 years ago

2.1.14

2 years ago

2.1.13

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.10

2 years ago

2.1.9

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago