4.10.116 • Published 2 years ago

@erboladaiorg/provident-vel-quam v4.10.116

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

@erboladaiorg/provident-vel-quam 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/provident-vel-quam

Usage/Examples

var toSorted = require('@erboladaiorg/provident-vel-quam');
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/provident-vel-quam');
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/provident-vel-quam');
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

groupByTypeScriptqsmime-dbObservableregular expressionlinkhas-ownframeres2016persistentInt32ArrayweaksetmodulewebsafeArray.prototype.flatMapfixed-widthinspectapollotrimStartpathomitrequireupoffsettoSortedpromisehelperindicatorterminalwidthperformantexpressieFunction.prototype.namerandomescapemimetypesgetterlrubundlingreact-testing-libraryECMAScript 2021copyintrinsicdynamodbstreams2installerpreserve-symlinksruntimeimportcloudsearchES2020fpsisConcatSpreadablefromstoragegatewaywordwrapoptimizerjasminehasOwndescriptionpushIteratorSymbolsortedprogressstreamsthrottleenderjsxebsdatatasksortUint8ClampedArrayexpressionsetterfunctionsgetOwnPropertyDescriptoriteratorconsumearktypecode pointsdom-testing-libraryasciiregularassertsextratypesafedebugairbnbgdprl10nicuiscolumnsdeleteES7idleglobequalityopensESfoldergenericsbuffersroutingjoiqueueMicrotaskduplexECMAScript 2018accessibilityrgbmapES2023propertiesreact animationmatchspeedsymbolfile systemxdg-openponyfillflatMapassertHyBipackageautoscalingdeepclonetspackagesenumerablehaswordbreakInt16ArrayformatxdgpicomatcheventEmitterarraysreadableincludeshashbannerassertionratelimitposeswfchaiwalkemitcolorserializeStreamdataviewfastclonePromiseRxawsfinddeep-copycmdpromisesrangeerroridentifiersrdsloggingloadingforEaches2017somewebsiteconcurrencyrm -fres6toobjectdescriptors@@toStringTagESnextpipe_.extendavapruneECMAScript 2019outputbundlerdragclass-validatoropeninferencechromiumlimitjsdomunicodesharedapptypeautoprefixerfunctionpopmotionformsflagstestURLSearchParamstrimRightestreefast-copypackage managercomputed-typesAsyncIteratorwgetWebSocketgetdefinedirstylesArrayparseStyleSheetschemeloggercreatetouchtyped arrayurlconvertchildrfc4122fetchshellkeyinvariantcloudtrailArray.prototype.findLastiamasyncendpointttyrm -rfslotwrapArrayBuffer.prototype.slicetaphooksgesturesastshrinkwrapenvironmentsuperagentjshintroute53objectpropertyexevarsmkdirstablereact-hook-formlazywarningiteratecachedeepstarterworkflowlastbeanstalkcsseslintpluginlibphonenumberdependency manageres5busydiffopeneramazoncall-bindSeta11ynpmdefinePropertyownfindupBigUint64Arraynumberreal-timerobustargstsliblengthelbio-tsdirectorynopesequenceimmutabletypeofrmdironceutilitiescolourparserReactiveExtensionsmoveformattingECMAScript 2020snscore-jsi18ntakeconfigthreebyteconcatMapwaitspinnertelephoneES2022string3dURLmonorepofunctionalvaluesECMAScript 3cjkES2017WeakMapshebangObjectajvurlsArray.prototype.containsrmMicrosoftspawncommand-linecharactersquote__proto__regular expressionsentriesjsdiffmetadatagroupprotocol-buffersargumentmapreducematchAllUnderscoreyamlbrowserlistdayjssescallbindprefixstdlibspringES3jsonpathreact-hooksArray.prototype.flattenstatelessflages2018whichform$.extendconfigurablees-shimseast-asian-widthform-validationdependenciesglobalsnegativeJSONreducercommandproxylanguagegetintrinsicelasticacheECMAScript 2022assignsymbolsagentString.prototype.trimBigInt64ArrayregexpprototypeES2018ansiCSSmobiledeepcopylockfilees2015graphqlarrayfsobjyupObservableses7.envES6arraybuffercolorsscheme-validationstringifiercontainsfast-deep-cloneenvtesteruninstallcolumnstringifyObject.getPrototypeOfmatcheswritableclonebatchcss-in-jsstreamUint32ArrayjavascriptutilviewsimpledbYAMLES2019ReactiveXfast-deep-copyutil.inspectpatchtimenegative zeroweakmapbreakES5schemalogcharacterES2016emrlinewraptostringtagstartECMAScript 7animationnamesString.prototype.matchAllfindLastIndexworkercoresetfasteventsRegExp#flagscheckeslint-plugindescriptorhigher-orderfulleslintObject.issymlinkreuseidRFC-6455Streamscall-boundlintrequestmruespreesameValueZeropostcssstyleguideArray.prototype.filterclihasOwnPropertyUint16ArrayWeakSetes-abstractmodulesbyteLengthcloudformationflattenqueuefilterprotodomflatspecchanneljQueryfast-clonemomentECMAScript 2015full-widthObject.keysapiregexpostcss-pluginkeyszeroECMAScript 2023zodwalkingratelimitedelectronreducedateECMAScript 2016guidtypedarraywriteec2escoerciblecallbounds3tc39find-upes-shim APIPushnativecompilertestingcollectionArray.prototype.includesprotobufcloudwatchvisualcryptojapaneseFloat32ArrayiterationdatastructureObject.assignredux-toolkithttpssuperstructnameclientdebuggereventDispatcherargvglobalrouteArrayBufferkarmabufferxhrhelpershttpcircularES8look-uphardlinkscodesfigletreacttypeerror-0concatbluebirdinstalltddvestpretty0deep-clonefastcopyecmascriptperformanceminimalstyled-componentsextendkinesisdefaulticonvsetImmediateObject.valuespositivelookjestgetoptfullwidthexecJSON-SchemaargparsebrowservalidateequalparentRxJSextensiontrimEndtoolkithookformuuidnodeshimcomparemkdirsemojiremove256[[Prototype]]WebSocketsmochavpccollection.es6make dirvalidationshaminternal slotpyyamltypedarraysexecutablesettingspolyfillFloat64Arraysearchfunction.lengthserializationlocationcommanderfindLasttypeseslintconfigchromecensorparentsvariablesutilitybrowserslistwaapiinputES2015phonerecursiveInt8ArraystructuredCloneajaxrapidECMAScript 6listenerstoArraypackage.jsonoptiones8Array.prototype.findLastIndexsetPrototypeOfRegExp.prototype.flagsTypeBoxpropprivate datadataViewgetPrototypeOftypedES2021ArrayBuffer#slicelaunchdeterministicimmersqsredirectconsoletraversejsinloadbalancingxtermUint8ArrayvalidspinnersboundredactObject.entriesSymbol.toStringTagObject.definePropertyefficientpluginquerymaketermECMAScript 5frameworkdropbddargumentsdotenvbyteOffsettrimreact posebindglaciermergeprivateparsingfastifyinternalcharseteveryawesomesauceArray.prototype.flatsyntaxquerystringTypedArraypnpm9koreantapecurltoStringTagCSSStyleDeclarationoptimistMapresolvetypanionwafwhatwgvaluemulti-packageECMAScript 2017sharedarraybufferchinesejsonthroatworkspace:*mimeenvironmentsReflect.getPrototypeOfObject.fromEntriesimportexporttoolserrorartsyntaxerrormkdirpfileserializersymlinksreadsidetexttrimLeftsliceaccessoreditornodejscall
@dramaorg/esse-praesentium-eligendi@dramaorg/quae-dolore-nostrum@erboladaiorg/ad-exercitationem-ducimus@erboladaiorg/adipisci-repellendus-corporis@erboladaiorg/asperiores-earum-quaerat@erboladaiorg/asperiores-fuga-sint@erboladaiorg/asperiores-nam-adipisci@erboladaiorg/autem-dolores-ipsam@erboladaiorg/cum-commodi-consequatur@erboladaiorg/cupiditate-consectetur-porro@erboladaiorg/cupiditate-pariatur-optio@erboladaiorg/distinctio-tempora-quis@erboladaiorg/error-atque-ea@erboladaiorg/esse-ipsa-numquam@erboladaiorg/ex-hic-molestias@erboladaiorg/explicabo-eius-adipisci@erboladaiorg/fugiat-nobis-repellendus@erboladaiorg/laboriosam-inventore-natus@erboladaiorg/molestiae-voluptatibus-perferendis@erboladaiorg/molestias-nulla-dolor@erboladaiorg/nisi-culpa-cum@erboladaiorg/officia-illum-aperiam@erboladaiorg/perspiciatis-magni-ut@erboladaiorg/quae-in-veniam@erboladaiorg/quaerat-mollitia-adipisci@erboladaiorg/quibusdam-itaque-tempora@erboladaiorg/quod-explicabo-neque@erboladaiorg/sint-deleniti-dolorem@erboladaiorg/sit-nesciunt-amet@erboladaiorg/tenetur-architecto-dolore@erboladaiorg/ut-dignissimos-laborum@erboladaiorg/velit-fugit-harum@juigorg/nisi-molestiae-ut@juigorg/sit-nam-neque@kollorg/dicta-itaque-nemo@kollorg/nihil-veniam-deserunt@swenkerorg/modi-dolorum-provident@swenkerorg/nulla-voluptates-voluptates@zitterorg/aspernatur-pariatur-occaecati@zitterorg/eum-veritatis-placeat@zitterorg/illum-perferendis-consecteturanalsorhost-simple-bscorcojs-qrcodecorcojs-qrcode-logodable-effectfiran-loggingsimple-assi-animationsimple-prompts-web3
1.1.29

2 years ago

1.1.28

2 years ago

2.2.59

2 years ago

2.2.57

2 years ago

1.1.30

2 years ago

2.2.58

2 years ago

2.2.55

2 years ago

2.2.56

2 years ago

2.2.53

2 years ago

1.1.34

2 years ago

2.2.54

2 years ago

1.1.33

2 years ago

2.2.51

2 years ago

1.1.32

2 years ago

2.2.52

2 years ago

1.1.31

2 years ago

2.2.50

2 years ago

1.1.36

2 years ago

1.1.35

2 years ago

2.9.93

2 years ago

2.7.73

2 years ago

2.7.72

2 years ago

2.9.94

2 years ago

3.9.101

2 years ago

3.9.102

2 years ago

3.9.100

2 years ago

3.9.105

2 years ago

3.9.103

2 years ago

3.9.104

2 years ago

4.10.111

2 years ago

4.10.112

2 years ago

4.10.113

2 years ago

4.10.114

2 years ago

2.7.77

2 years ago

2.2.64

2 years ago

2.7.76

2 years ago

2.2.65

2 years ago

2.7.75

2 years ago

2.2.62

2 years ago

2.7.74

2 years ago

2.2.63

2 years ago

2.2.60

2 years ago

2.2.61

2 years ago

2.7.79

2 years ago

2.7.78

2 years ago

2.7.80

2 years ago

2.7.84

2 years ago

2.7.83

2 years ago

2.7.82

2 years ago

2.7.81

2 years ago

4.10.115

2 years ago

4.10.116

2 years ago

2.7.88

2 years ago

2.7.87

2 years ago

2.7.86

2 years ago

2.5.67

2 years ago

2.7.85

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

2.1.38

2 years ago

2.1.39

2 years ago

2.1.36

2 years ago

2.1.37

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

3.9.99

2 years ago

3.9.97

2 years ago

2.1.41

2 years ago

3.9.98

2 years ago

2.1.42

2 years ago

3.9.95

2 years ago

2.3.66

2 years ago

3.9.96

2 years ago

2.3.65

2 years ago

2.1.40

2 years ago

3.9.94

2 years ago

3.10.108

2 years ago

3.10.107

2 years ago

3.10.109

2 years ago

3.10.106

2 years ago

3.10.105

2 years ago

3.10.111

2 years ago

3.10.110

2 years ago

2.8.89

2 years ago

2.8.88

2 years ago

2.6.67

2 years ago

2.6.68

2 years ago

2.6.69

2 years ago

2.8.92

2 years ago

2.8.91

2 years ago

2.6.70

2 years ago

2.8.90

2 years ago

2.6.71

2 years ago

2.6.72

2 years ago

2.8.93

2 years ago

2.2.48

2 years ago

2.2.49

2 years ago

2.2.46

2 years ago

2.2.47

2 years ago

2.2.44

2 years ago

2.2.45

2 years ago

2.2.42

2 years ago

2.2.43

2 years ago

2.4.67

2 years ago

2.4.66

2 years ago

1.0.15

2 years ago

1.0.11

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago