4.10.116 • Published 11 months ago

@erboladaiorg/provident-vel-quam v4.10.116

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

1 year ago

1.1.28

1 year ago

2.2.59

1 year ago

2.2.57

1 year ago

1.1.30

1 year ago

2.2.58

1 year ago

2.2.55

1 year ago

2.2.56

1 year ago

2.2.53

1 year ago

1.1.34

1 year ago

2.2.54

1 year ago

1.1.33

1 year ago

2.2.51

1 year ago

1.1.32

1 year ago

2.2.52

1 year ago

1.1.31

1 year ago

2.2.50

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

2.9.93

12 months ago

2.7.73

1 year ago

2.7.72

1 year ago

2.9.94

12 months ago

3.9.101

12 months ago

3.9.102

12 months ago

3.9.100

12 months ago

3.9.105

12 months ago

3.9.103

12 months ago

3.9.104

12 months ago

4.10.111

11 months ago

4.10.112

11 months ago

4.10.113

11 months ago

4.10.114

11 months ago

2.7.77

1 year ago

2.2.64

1 year ago

2.7.76

1 year ago

2.2.65

1 year ago

2.7.75

1 year ago

2.2.62

1 year ago

2.7.74

1 year ago

2.2.63

1 year ago

2.2.60

1 year ago

2.2.61

1 year ago

2.7.79

1 year ago

2.7.78

1 year ago

2.7.80

1 year ago

2.7.84

1 year ago

2.7.83

1 year ago

2.7.82

1 year ago

2.7.81

1 year ago

4.10.115

11 months ago

4.10.116

11 months ago

2.7.88

1 year ago

2.7.87

1 year ago

2.7.86

1 year ago

2.5.67

1 year ago

2.7.85

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

2.1.38

1 year ago

2.1.39

1 year ago

2.1.36

1 year ago

2.1.37

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

3.9.99

12 months ago

3.9.97

12 months ago

2.1.41

1 year ago

3.9.98

12 months ago

2.1.42

1 year ago

3.9.95

12 months ago

2.3.66

1 year ago

3.9.96

12 months ago

2.3.65

1 year ago

2.1.40

1 year ago

3.9.94

12 months ago

3.10.108

12 months ago

3.10.107

12 months ago

3.10.109

11 months ago

3.10.106

12 months ago

3.10.105

12 months ago

3.10.111

11 months ago

3.10.110

11 months ago

2.8.89

1 year ago

2.8.88

1 year ago

2.6.67

1 year ago

2.6.68

1 year ago

2.6.69

1 year ago

2.8.92

12 months ago

2.8.91

1 year ago

2.6.70

1 year ago

2.8.90

1 year ago

2.6.71

1 year ago

2.6.72

1 year ago

2.8.93

12 months ago

2.2.48

1 year ago

2.2.49

1 year ago

2.2.46

1 year ago

2.2.47

1 year ago

2.2.44

1 year ago

2.2.45

1 year ago

2.2.42

1 year ago

2.2.43

1 year ago

2.4.67

1 year ago

2.4.66

1 year ago

1.0.15

1 year ago

1.0.11

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

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