6.9.96 • Published 10 months ago

@taktikorg/itaque-accusamus v6.9.96

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

10 months ago

6.9.95

10 months ago

6.8.95

10 months ago

6.8.94

10 months ago

6.8.93

10 months ago

6.8.92

11 months ago

6.8.91

11 months ago

6.8.90

11 months ago

6.8.89

11 months ago

6.8.88

11 months ago

6.7.88

11 months ago

6.7.87

11 months ago

6.7.86

11 months ago

6.7.85

11 months ago

6.7.84

11 months ago

5.7.84

11 months ago

5.7.83

11 months ago

5.7.82

11 months ago

5.7.81

11 months ago

5.7.80

11 months ago

5.7.79

11 months ago

5.7.78

11 months ago

5.7.77

11 months ago

5.7.76

11 months ago

5.7.75

11 months ago

5.7.74

11 months ago

5.7.73

11 months ago

5.7.72

11 months ago

5.7.71

11 months ago

5.7.70

11 months ago

5.7.69

11 months ago

5.7.68

11 months ago

5.7.67

11 months ago

5.7.66

11 months ago

5.7.65

11 months ago

5.7.64

12 months ago

5.6.64

12 months ago

5.6.63

12 months ago

5.6.62

12 months ago

5.6.61

12 months ago

5.6.60

12 months ago

4.6.60

12 months ago

4.6.59

12 months ago

4.6.58

12 months ago

4.6.57

12 months ago

3.6.57

12 months ago

3.6.56

12 months ago

3.6.55

12 months ago

3.6.54

12 months ago

3.6.53

12 months ago

3.6.52

12 months ago

3.6.51

12 months ago

3.6.50

12 months ago

3.6.49

12 months ago

3.6.48

12 months ago

3.6.47

1 year ago

3.6.46

1 year ago

3.6.45

1 year ago

3.6.44

1 year ago

3.6.43

1 year ago

3.5.43

1 year ago

3.5.42

1 year ago

3.4.42

1 year ago

3.4.41

1 year ago

3.4.40

1 year ago

3.3.40

1 year ago

3.3.39

1 year ago

3.2.39

1 year ago

3.2.38

1 year ago

3.2.37

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

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago