3.4.88 • Published 10 months ago

@erboladaiorg/asperiores-et-soluta v3.4.88

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

@erboladaiorg/asperiores-et-soluta 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/asperiores-et-soluta

Usage/Examples

var toSorted = require('@erboladaiorg/asperiores-et-soluta');
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/asperiores-et-soluta');
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/asperiores-et-soluta');
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

json-schema-validatorYAMLES7sharedReactiveXcryptgradients css3testingentriesnativerfc4122animationhotUint8Arraygradients cssarraysswfserializationreversepersistentdeepString.prototype.matchAllwidthlazypushlinkisConcatSpreadablefslengthmodulehardlinksassertionrapidSettc39constautoprefixerReflect.getPrototypeOfmixinspasswords3Float64ArraySystem.globalpopmotioncall-bindtoReversedeslint-pluginargumentObservableskeyskoreanstylesheettypeerrorregular expressionless mixinsfast-copyBigInt64ArrayStreamsdefineWebSocketpureforEachbundlerbannerarraybuffernameschromestylerdswindowsviewargvglacierECMAScript 2018shimtoStringTagpreserve-symlinksprivatereact-componentwgetstatusIteratorloadbalancingqueryyupiterationspinnerstreamses2016make dirtakestyled-componentsimmerresolveES2015clienthasOwnrangeerrorECMAScript 2017multi-packageasserteventssettingsroute53Array.prototype.flatdeepcloneflagexectypeofdescriptionES2017file systemconcatmkdirfantasy-landredactdotenvreact poseidentifierses2015recursivewarningsymbolUint8ClampedArrayHyBidatastructureecmascripteventEmittermobilestyleguidebrowserelbframerReactiveExtensionstraversemomentbinsetImmediatereversedtermnametypescriptmacoserror-handlingreadablefunction.lengthECMAScript 7lruworkflowdate[[Prototype]]dragvariablesphoneclass-validatorcertificatesoptimiststylesperformantjsondefinePropertylastmkdirsArray.prototype.filterESl10ncompilerstoragegatewaycomparelocalECMAScript 2022ArrayBuffer.prototype.slicelintbufferses-shim APIjsdiffaccessibilityhasoffsetpnpm9domsimpledbObject.fromEntriesObject.definePropertygraphqlsetbyteLengthdirextraless.jsthreejoimapreducepicomatchconcatMaptypestestvalidationbabel-corejsxRegExp#flagsreact-hook-formauthenticationcolourworkspace:*ebsponyfillcacheenvURLfast-deep-clonesuperagentgdprcloudtrailqueueMicrotaskguidobjutilityCSSStyleDeclarationsqsnodeprophttpECMAScript 2016jestlesspackage managerreducertoobjecteventDispatcherdataviewglobal objectUint16Arrayinferencees-abstractes-shimsfunctionalyamlbootstrap lessbyteart_.extendhooksownECMAScript 2021chromium6to5irqrequirespecassertsuuidfpsTypedArraydiffwritablecopyfast-cloneobjectemrcall-bound3dtestermetadatauploadutil.inspectreadablestreamObject.keysasttrimStartpropertiesvaluesairbnbES5fpestreePromisepackageshookformless compilerapolloserializerstringArray.prototype.flattengetintrinsicBigUint64Arraydeep-copycss lessharmonyregularbusybuffernegativegitignorerobusttacitesreadfnmatchtextsestrimRightnpmignoreslotcolumnonceshebangreducetostringtagsigintxtermassignSymbol.toStringTagselfieMicrosoft-0ES2020forksymbolspluginObject.valuesstringifyfullwidthfixed-widthtypedvalidateagentprototypevisualprunerandomredux-toolkitTypeBoxArray.prototype.containsdescriptorsconfigurableObject.assignObject.isfindacorntelephonelesscssenvironmentclassescurriedObject.getPrototypeOfisremoveES3shellcomputed-typessideprotocol-bufferslibphonenumberignoreproxyauthWebSocketsomittoolkitencryptionglobalThisutilglobal this valuecloudformationes5Array.prototype.findLastcloneinspectpositivelockfileObservablespinnerstypedarrayjavascriptwalkArrayBuffer#sliceprettyeveryfastifyexpresspathcorestatelessoptimizerwafhashprivate datacss variableUint32ArrayawesomesauceawsfindLastIndexmkdirpendpointchildchannelUnderscoreES2023json-schemaajvsetterwriteasyncsuperstructuser-streamsESnextdataViewECMAScripttrimSymbolvpctslibreplayexpressionruntimecallboundfastclonefull-widthbddpostcss-pluginmapimportxhrdayjsreact-hooksscheme-validationsignedhigher-orderschemeutilitiesmruformspreprocessorvestmatchAllvariables in csswhatwgiteratestringifierFunction.prototype.namecharactercss-in-jssignalelectrontransportcolumnseslintes7shaminvarianti18ncircularjson-schema-validationcollection.es6sequencedynamodbformrequestbinariesflatMapArray.prototype.flatMapdirectoryloggerglobalpyyamlsomeurlunicodeequalitynested cssreal-timeexecuteschemajshinttimecolorsiamES8jsonschema0chinesegroupstarterposemodules256boundstatepackage.jsonhasOwnPropertypinoarrayinternal slotiteratordatamatchesjapanesebindtsgetterconsoleimmutablefluxPushgesturesprogresssameValueZeroreact animationES2019getOwnPropertyDescriptorsymlinkprocessformattingefficientdeterministicinstallercompile lesscallbackoperating-systemfunctiondeletecommanderECMAScript 2019syntaxreact-testing-libraryapivaluehttpsstableqsa11yES2021collectionpredictablecommand-linejscloudfronttypanionconfigvalidatorcssajaxargses8Array.prototype.includesES6cloudwatchquerystringinternalelmexitprefixec2ECMAScript 2015touchtypedarraysidleJSONaccessorjsdomES2016spawnObject.entriesfromindicatortypepropertyqueuecallbindweakmapeffect-tsInt32ArrayfilereactreuseimportexportRFC-6455helperRxtddamazonbcryptramdacolormatchJSON-SchemapatchflattenzerospeedcheckES2018environmentsflagssortECMAScript 2020loggingworkerparseres2017weaksetexecfilesubprocessshrinkwrapinttynodejsgetoptfullflatfunctions.gitignorekinesishas-ownStyleSheetsetPrototypeOfrgblistenersdependency managerstreamgetwhichsigtermtoolsgenericsrouteuninstalllanguagetranspilerArrayBufferfastECMAScript 5trimEndcjksymlinksURLSearchParamsdeep-cloneeast-asian-widthautoscalingasterisksnpmminimalconsumeextendcommandECMAScript 6inputparse.envWeakSetcontainsspringoptionmanagerRxJSless cssparsingInt8ArrayArray.prototype.findLastIndexescapeAsyncIteratorio-tsperformanceruleswaitdroptoArrayloadinggetPrototypeOfmakevarzxlinuxcallprotoelasticacheslicecss nestingintrinsicES2022Float32ArrayfindLastfiltercensorbrowserlistletes2018waapiregexRegExp.prototype.flagsclassnamestructuredClonepostcssbeanstalksignalsmoveCSSArraydeepcopysafeterminalWeakMapObjectjwtbinarytranspilehelpersgroupByMaptoSortedbootstrap css$.extendopensslcloudsearchasciityped arrayfigletnopelivees6installreduxeslintpluginexit-coderoutingvarssyntaxerror__proto__quoteincludesregular-expressionhandlersString.prototype.trimform-validationprotobufnegative zerocryptoglobalsbyteOffsetnumberinterruptsclassnameserrorvalidECMAScript 3codesstylingserializezodfastcopypoint-freedescriptorsnsECMAScript 2023typesafeansiTypeScriptendercore-jsarktypeStreamjQueryfast-deep-copywindowbrowserslistemitfetchpolyfilltrimLefteslintconfigpromise@@toStringTag
3.4.88

10 months ago

3.4.87

10 months ago

3.4.86

11 months ago

3.3.86

11 months ago

3.3.85

11 months ago

3.3.84

11 months ago

3.3.83

11 months ago

3.3.82

11 months ago

3.3.81

11 months ago

3.3.80

11 months ago

3.3.79

11 months ago

3.3.78

11 months ago

3.3.77

11 months ago

3.3.76

11 months ago

3.3.75

11 months ago

3.3.74

11 months ago

2.3.74

11 months ago

2.3.73

11 months ago

2.3.72

11 months ago

2.3.71

11 months ago

2.3.70

11 months ago

2.3.69

11 months ago

2.3.68

11 months ago

2.3.67

11 months ago

2.3.66

11 months ago

2.3.65

11 months ago

2.3.64

11 months ago

2.3.63

11 months ago

2.3.62

11 months ago

2.3.61

11 months ago

2.3.60

11 months ago

2.3.59

11 months ago

2.3.58

12 months ago

2.3.57

12 months ago

2.3.56

12 months ago

2.3.55

12 months ago

2.3.54

12 months ago

2.3.53

12 months ago

2.3.52

12 months ago

2.3.51

12 months ago

2.3.50

12 months ago

2.3.49

12 months ago

2.3.48

12 months ago

2.3.47

12 months ago

2.3.46

12 months ago

2.3.45

12 months ago

2.3.44

12 months ago

2.3.43

12 months ago

2.3.42

12 months ago

2.3.41

12 months ago

2.3.40

12 months ago

2.3.39

12 months ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.3.31

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

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

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