5.7.84 • Published 1 year ago

@taktikorg/unde-quisquam-molestiae v5.7.84

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

1 year ago

5.7.83

1 year ago

5.7.82

1 year ago

4.7.82

1 year ago

4.7.81

1 year ago

4.7.80

1 year ago

4.6.80

1 year ago

4.6.79

1 year ago

4.5.79

1 year ago

4.4.79

1 year ago

4.4.78

1 year ago

4.4.77

1 year ago

4.4.76

1 year ago

4.4.75

1 year ago

4.4.74

1 year ago

4.4.73

1 year ago

4.4.72

1 year ago

4.4.71

1 year ago

4.4.70

1 year ago

4.4.69

1 year ago

4.4.68

1 year ago

4.4.67

1 year ago

4.4.66

1 year ago

4.3.66

1 year ago

4.3.65

1 year ago

4.2.65

1 year ago

4.2.64

1 year ago

4.2.63

1 year ago

4.2.62

1 year ago

4.2.61

1 year ago

4.2.60

1 year ago

4.2.59

1 year ago

4.2.58

1 year ago

4.2.57

1 year ago

4.2.56

1 year ago

4.2.55

1 year ago

4.2.54

1 year ago

4.2.53

1 year ago

4.2.52

1 year ago

4.2.51

1 year ago

4.2.50

1 year ago

4.2.49

1 year ago

4.2.48

1 year ago

4.2.47

1 year ago

4.2.46

1 year ago

4.1.46

1 year ago

4.1.45

1 year ago

3.1.45

1 year ago

3.1.44

1 year ago

3.1.43

1 year ago

3.1.42

1 year ago

3.1.41

1 year ago

3.1.40

1 year ago

3.1.39

1 year ago

3.1.38

1 year 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