3.4.72 • Published 11 months ago

@hishprorg/quisquam-itaque-sed v3.4.72

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

@hishprorg/quisquam-itaque-sed 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 @hishprorg/quisquam-itaque-sed

Usage/Examples

var toSorted = require('@hishprorg/quisquam-itaque-sed');
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('@hishprorg/quisquam-itaque-sed');
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('@hishprorg/quisquam-itaque-sed');
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

touchcommanderdescriptorECMAScript 2023persistentmatchesnamefull-widthjson-schemamulti-packagejslocaltoSortedglobal objectpositiveefficientjsdiffconcatpackage managerpropertiesformatcall-bindRFC-6455statelesschainumberchannelArray.prototype.includesterminalcryptvarfnmatchintrinsicvalidateWeakSetstreamownECMAScript 3i18nes2017ECMAScript 2018elmignoregenericsReactiveExtensionssetImmediatecommand-linecomparebootstrap lessentriestoStringTagreadwalkproxyArray.prototype.flatMaprandomRxJSselfsymlinkjestqsiamsigintshamdeterministicqueryvisual256managerless cssreadablestreamparseerrorYAMLcallbackcloudwatchhelpersreduxrapidgitignoremkdirinternal slotmergeserializationserializerexit-codeweaksetESObject.valuesArray.prototype.flattenreactArrayBuffer.prototype.slicebinvestansieslintconfigbundlersigtermiteratefunction.lengthpropertyes-abstractutilityspringartrgbconfigurablepromisevpcwritereusees2016TypedArraysimpledb0stylingnodeUint16ArraycircularsuperstructCSSinexecutecensorclientnamesdirectoryargvparsingprettytranspileres6pluginfixed-widthinstalltoolsserializeArrayfpsecmascriptharmonyglobalThiscachevarsReflect.getPrototypeOfmobileasynctimereversedlintcloudformationconfigxtermnpmignorequerystringbinaryelasticachesessharedarktypeSetincludesamazonfast-clonejsonpipecolorsstabletrimEndclonecompilervalidationsafeequalURLSearchParamselectronexeccompile lesscheckrfc9562typeerrores-shim APIreact-hookssuperagentenumerablecss-in-jsObject.entriesconstArrayBuffer#slicepreserve-symlinksiterationparserECMAScript 5collectionslicehttpdatastructurejson-schema-validatordiffES3readablejavascriptisConcatSpreadablegdprarrayssharedarraybufferreducerendpointruntimetesterdomiteratorlanguagereact-testing-libraryfetchtypeofbufferES2017has-owncloudfrontwafeventsObject.definePropertyconsoleObjectkeydependenciesidlevaluedefineconcatMapfast-deep-clonefastifyfstscjkIteratorES2015matchebsredux-toolkitjson-schema-validationgetoptregulareventEmitterasciiglobal.gitignoremake dirgetintrinsicl10nmruarraytranspilebcryptlettextes2015hasES2020RegExp.prototype.flagsWebSocketsECMAScript 2021linkrequestmonorepointerruptsschemamkdirpforEachelbglaciersymbolsasteriskshandlersloadbalancingstatusES2018byteweakmapcontainsescapeshrinkwrapslotcss variableec2tacitdependency managertoReversedmixinsassertsmoveformsassignopenssldeepcloneESnexttypesafewaapiFloat32Arrayfluxcopycomputed-typesfunctiongradients css3BigInt64ArraywritablesyntaxECMAScript 7findLasteventDispatcherjsonschemainspectcharacterreduceendertrimLeftfindpasswordglobal this valuetraversesideloadingapollocoerciblekinesisES2023descriptionoperating-systemcss lessflatbinariesqueueMicrotaskloggersameValueZerojoistructuredCloneobj[[Prototype]]dotenvstyleguidepicomatchindicatorgetOwnPropertyDescriptorzerokeystc39shebanggetPrototypeOfsomebabel-coremkdirsSymbolmacosresolveECMAScript 2017warningdatajsxapiviewtelephonespinnersstyleimportexportbabelprivate datatypedarrayajvfromES5testrobustjshintnested cssUint8Arrayeffect-tsswfacornaccessibilityInt8Arrayidentifiersdiruser-streamsMicrosoftgradients csscolumnsbrowsertslibpathcssbyteLengthtypedarrayscallbindio-tsfunctionsfindLastIndextypanionpredictableestreesetPrototypeOfequalityspeclazyoptimistlengthprotocol-bufferslessES7stylesfastemrproplesscssarraybufferprefixerror-handlingcalluninstalltermArray.prototype.contains__proto__browserliststatedescriptorstypesObservableclassnamesreact-componentmodulesObject.keyscore-jscoreagentpackagestoolkitjQueryclassesschemecollection.es6HyBiUint32ArraythreeestddjsdomgetECMAScript 2020PushtypescriptECMAScript 2022whichinvariantpyyamlArray.prototype.findLastperformanceperformanthelperomitchromiumgesturesregexpchineseeslint-pluginRegExp#flagsdynamodbshellcolourreverseSystem.globalless.jshardlinksJSON-SchemasqsgroupByregular-expressionreplaydefinePropertyiesymlinkspolyfillpoint-freeencryptioninternalcss nestingnopeECMAScript 6transportexpresseslintplugintrimRightprogressArray.prototype.flatclassnameECMAScript 2016boundtrimStartdom-testing-libraryimmerurlECMAScript 2019stringifyAsyncIteratorJSONremovefullwidthimmutableroutings3deletesorthasheast-asian-widthInt16Arrayscheme-validationinputsorteddragauthenticationshimexpressionnegative zeroflagInt32ArrayvalidatorliveES2019fast-deep-copyReactiveXformObject.getPrototypeOfdateenvironmentsfastcopyworkervaluesObservablesexitaccessorchromemapeveryfpspawnes2018syntaxerrorECMAScriptuuidbundlingArray.prototype.filterwhatwgfigletworkspace:*storagegatewayES2021irqargschildsetterwindowsPromisebuffersStreampostcssArray.prototype.findLastIndextostringtagES2016call-boundemitposekoreantoArray.envgrouppostcss-pluginhooksloggingBigUint64Arraya11ysymbolsignal-0listenersTypeBoxhttpsSymbol.toStringTagoptiontyped arrayhotbeanstalkreal-timees7testingfastclonenativequeueoffsetCSSStyleDeclarationanimationStreamsguidbyteOffsetreact posexhrdataViewargumentWebSocketmoduleworkflowsubprocesscommandflatMapformattingtake6to5nodejsstyled-componentscloudsearchhookformnpmcurlhasOwnPropertysnsglobalsrulesajaxenvironmentFunction.prototype.namequote@@toStringTagdeep-copyfunctionalreact animationflattenprotomatchAllconsumeforkmapreducelibphonenumbercodesStyleSheetprivatespeednegativeinferenceES6extrareact-hook-formhasOwnspinnerbootstrap csstoobjectextendstylesheetramdaassertionECMAScript 2015linuxtrimassertvariablesES2022typeString.prototype.trimpatchsignalsrdspushWeakMapredactcloudtrailinstallerttycliUint8ClampedArraywindowcertificatesfileregular expressionbrowserslistobjectURLgetterdeepbusyES8preprocessorObject.fromEntriesastbannerunicodepackage.jsonsettingsutilsObject.isawesomesaucefantasy-landyamlhigher-orderautoprefixeroptimizerform-validation3dstarterdayjsmetadatalog$.extendeslintlockfilestringes-shimssetyupbddprototypefile systemoutputzxcolumnvariables in csswaitless compilerprunerfc4122ArrayBufferObject.assignawses8deepcopyponyfillframerregexmomentcallbounddropairbnbjapanesejwtmakeRxwgetcurriedonceuploadcreateutilitiesiswidthphonedataviewless mixinsprotobufglobUnderscoretypedroute53TypeScript
3.4.72

11 months ago

3.4.71

11 months ago

3.4.70

11 months ago

3.4.69

11 months ago

3.4.68

11 months ago

3.4.67

11 months ago

3.4.66

11 months ago

3.4.65

11 months ago

3.4.64

11 months ago

3.4.63

11 months ago

3.4.62

11 months ago

3.4.61

11 months ago

3.4.60

11 months ago

3.4.59

11 months ago

3.4.58

11 months ago

3.4.57

11 months ago

3.4.56

11 months ago

3.4.55

11 months ago

3.4.54

11 months ago

3.4.53

11 months ago

3.4.52

12 months ago

2.4.52

12 months ago

2.4.51

12 months ago

2.4.50

12 months ago

2.4.49

12 months ago

2.4.48

12 months ago

2.4.47

12 months ago

1.4.47

12 months ago

1.4.46

12 months ago

1.3.46

12 months ago

1.3.45

12 months ago

1.3.44

12 months ago

1.3.43

12 months ago

1.3.42

12 months ago

1.3.41

12 months ago

1.3.40

12 months ago

1.3.39

12 months ago

1.3.38

12 months ago

1.3.37

12 months ago

1.3.36

12 months ago

1.3.35

1 year ago

1.3.34

1 year ago

1.3.33

1 year ago

1.3.32

1 year ago

1.3.31

1 year ago

1.3.30

1 year ago

1.3.29

1 year ago

1.3.28

1 year ago

1.3.27

1 year ago

1.3.26

1 year ago

1.3.25

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.2.23

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

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.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