5.7.84 • Published 10 months ago

@taktikorg/unde-quisquam-molestiae v5.7.84

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

@taktikorg/unde-quisquam-molestiae 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/unde-quisquam-molestiae

Usage/Examples

var toSorted = require('@taktikorg/unde-quisquam-molestiae');
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/unde-quisquam-molestiae');
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/unde-quisquam-molestiae');
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

Float32Arrayregular expressiongenericstakeless.jsInt16ArrayStreamstslibdatethreemkdircomputed-typesprivate dataenderdeterministicencryptioncircularhasOwnPropertyrobustpatchvarschemanpmregexhookformqueryfetchexecfilemobileecmascriptfull-widthECMAScript 2017querystringlanguagetsobjweaksetiterationjson-schemaextragesturesdependency managerbootstrap csstyped arrayclassesfast-copycomparelintinterruptssyntaxarraysArray.prototype.filterbabel-corenameqsincludesutilsenvidentifierspackage.jsonSymbolcommand-lineregexpmkdirsreadablestreamoutputminimalhas-ownbabelmake dirgetkeyses2017snsRxTypeScriptasterisksbyteStreamjson-schema-validatorutiltranspilerzxconstpicomatchlogimmerproxyString.prototype.trimcloudfrontcommandArrayformsArray.prototype.findLastflagstostringtagpredictabletermHyBiomitformatacornagentsameValueZerostringstablemonorepoPromiserulesflagArray.prototype.flattenwhichdeep-cloneRxJStc39recursivetouchestreepostcss-plugines6enumerableshrinkwrap.envexecuteprocesseslintconfigJSON-Schemaenvironmentsbddworkflowa11ygdprrapidinvarianthttpsfastredux-toolkitinternalString.prototype.matchAllsortInt32Arraywaapiprefixspinnersapolloes2016getoptcollectiongradients cssgitignoreslotmkdirpclass-validatorlruxtermreact-testing-librarylocalremovearrayoptimistES3ES2021fpsdropglobal objectpackageses-abstractcoloreffect-tstestfpvalidatorspecjsonschemapropoptionnameschromeStyleSheetbootstrap lessObjectflattentoSortedquotefunction.lengthmatchAllcompilerascii0Function.prototype.namecolorstypeofregulartrimLeftcloudsearchserialize-0valuesmixinsyamlObservablestatusECMAScript 3callbackexpressbundlingforkwgetaccessibilitychinesewidthchaimatchesbyteLengthsymbolscall-boundanimationbrowserlistconcatMapstylesheetconsoleObject.getPrototypeOfarraybufferstyleguideeslintbindefficientArray.prototype.flatmomentdatapyyamlgraphqlWeakMapjavascriptconfigframerBigUint64Arraycallbindttyjshintfast-deep-clonejsdomSystem.globaltypesafewindowcensorECMAScript 2015signalio-tsutil.inspectparsingpropertyless cssjapanesestylesnegative zeroroutingpoint-freeperformancemoduledom-testing-librarytrimStartreducerObject.isstylingelboptimizerECMAScript 2021SetdeepresolveprettyTypedArrayless compilervalidationruntimegetterObject.entriesequalitylengthlessPush3dhigher-orderdirjestless mixinsintrinsicnpmignorescheme-validationfastifyawesomesaucematchxhrsimpledbsortedsafegetOwnPropertyDescriptornopesqsfast-deep-copytypedarrayReflect.getPrototypeOf@@toStringTagismacossubprocesscacheawsowndataviewinferenceWebSocketcoreoncestyled-componentsfnmatchtextdescriptorsglobal this valueconsumecurriedSymbol.toStringTagObject.valuesdescriptionfindLastautoscalingexit-codehelpereslintpluginrequirekeyObject.definePropertywaitjQuerysyntaxerrorhardlinksassignBigInt64Arrayauthregular-expressionrandomwarningprogressvarsgetPrototypeOfes-shim APIYAMLposemapreducegroupES2018classnamesdeletefixed-widthes7codesmodulesbannerfindLastIndexextendexitpositiveansitypereusejs256typedmergerangeerrorimportexportqueuetypedarraysloggingjwts3jsdiffconcatsignedES5Array.prototype.flatMapstylespawnredactgroupByarktypeschemeArrayBuffer.prototype.sliceloggerconfigurablestarterparserbinelectronbcryptlistenersnodeglobchannelslicepostcsshotspringflatsymbolrequestinputcheckargumentpropertiesfileArrayBuffer#sliceassertionescapetraversesignalsreactpopmotiontoStringTagautoprefixersetchildfastcopybrowserslistairbnbinstallajvtoobjectfast-cloneIteratorprototypees5symlinksreadisConcatSpreadableES2023ObservablesyupcolourbyteOffsetlivesharedUint16ArrayloadingtacitguidpolyfillES2017validtoolkitmanager__proto__inspectcall-bindES2020selfMap_.extendprivatemovepreserve-symlinkscloneimmutableECMAScript 2019AsyncIteratorcryptovestpipeerror-handlingstringifytesterspeedlazyfluxkoreanamazonES2022
5.7.84

10 months ago

5.7.83

10 months ago

5.7.82

10 months ago

4.7.82

10 months ago

4.7.81

10 months ago

4.7.80

11 months ago

4.6.80

11 months ago

4.6.79

11 months ago

4.5.79

11 months ago

4.4.79

11 months ago

4.4.78

11 months ago

4.4.77

11 months ago

4.4.76

11 months ago

4.4.75

11 months ago

4.4.74

11 months ago

4.4.73

11 months ago

4.4.72

11 months ago

4.4.71

11 months ago

4.4.70

11 months ago

4.4.69

11 months ago

4.4.68

11 months ago

4.4.67

11 months ago

4.4.66

11 months ago

4.3.66

11 months ago

4.3.65

11 months ago

4.2.65

11 months ago

4.2.64

11 months ago

4.2.63

11 months ago

4.2.62

11 months ago

4.2.61

11 months ago

4.2.60

11 months ago

4.2.59

11 months ago

4.2.58

11 months ago

4.2.57

11 months ago

4.2.56

11 months ago

4.2.55

12 months ago

4.2.54

12 months ago

4.2.53

12 months ago

4.2.52

12 months ago

4.2.51

12 months ago

4.2.50

12 months ago

4.2.49

12 months ago

4.2.48

12 months ago

4.2.47

12 months ago

4.2.46

12 months ago

4.1.46

12 months ago

4.1.45

12 months ago

3.1.45

12 months ago

3.1.44

12 months ago

3.1.43

12 months ago

3.1.42

12 months ago

3.1.41

12 months ago

3.1.40

12 months ago

3.1.39

12 months ago

3.1.38

12 months ago

3.1.37

1 year ago

3.1.36

1 year ago

3.1.35

1 year ago

3.1.34

1 year ago

3.1.33

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

3.1.30

1 year ago

3.1.29

1 year ago

3.1.28

1 year ago

3.1.27

1 year ago

3.1.26

1 year ago

3.1.25

1 year ago

3.1.24

1 year ago

3.0.24

1 year ago

3.0.23

1 year ago

3.0.22

1 year ago

3.0.21

1 year ago

3.0.20

1 year ago

3.0.19

1 year ago

3.0.18

1 year ago

3.0.17

1 year ago

3.0.16

1 year ago

3.0.15

1 year ago

3.0.14

1 year ago

3.0.13

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

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