2.8.63 • Published 1 year ago

@zitterorg/laudantium-modi v2.8.63

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@zitterorg/laudantium-modi 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 @zitterorg/laudantium-modi

Usage/Examples

var toSorted = require('@zitterorg/laudantium-modi');
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('@zitterorg/laudantium-modi');
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('@zitterorg/laudantium-modi');
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

react posebusyreadIteratorelasticacheawesomesaucemodulesidlehttpregexrmlinkhandlerrm -rffulltestinglookpipefolderkeysqsES2017cloudformationglobRxJSrouterObject.fromEntriesreduxrulesextragetOwnPropertyDescriptorcommanderconfigdom-testing-libraryformattingparsecloudfrontTypedArrayfunctionsgenericsUint16Arrayhas-ownstripnativetoReversedObject.assigncurriedwalkingObjectemitbyteOffsetfantasy-landappnegativeprotocol-buffersroute53URLprivateworkfloweslintpluginUnderscorestringifyesSymboldeepcloneeslintpoint-freeArrayBufferslotconvertsetmakeajvbrowserrm -frloggercommandtypedconsumei18nmonorepomkdirsHyBiArrayarraySetramdaanimationinstallECMAScript 2021serializationenvec2apiiconves2015deep-clonelintObject.valueswaftypeofeslintconfigdirvalidguidES7rangeerrorwalkchannelvisualtoSortedcharacterrestasteriskscolorsstreamsbddastagentchromedatabundlerfind-uppositivesearchsnsfast-deep-copyespreeredux-toolkittoArrayrgbspinnersWebSocketcoverageacornECMAScript 2022pluginsyntaxtypesafeUint32ArrayruntimemapschemaES2018classnameclass-validatorserverUint8ClampedArrayArray.prototype.flatteniterateiamidentifierswarningassertionform-validationsameValueZerohasOwnPropertygroupvariablesObject.getPrototypeOfmkdirpvarsbytesomevalueservicecomputed-typescolumnuninstallcloudwatchpropertiesmkdirbinframeronceindicatormanipulationes6trimStartECMAScript 3postcss-plugintyped arrayclassnameswebinputgesturesloadingassertsmoveECMAScript 2020shimECMAScript 2016karmaweakmapdeterministicvestwaapiprettyenvironmenthashhttpsownfspushrdsspringsetPrototypeOfcensorTypeScriptjselectronStyleSheetmockingreadable__proto__protobufbuffersfile cachemapreduceyamlrfc4122isConcatSpreadableautoscalingeventEmittereventDispatchersimple cachejsdomgraphqlqueryargumentdebugdescriptor.envprefixenvironmentsES2016joiisfindLastIndextypescriptcomparecallbackWebSocketsshelldirectoryspeedtostringtagreact-hooksfull-widthoptimisthelperlistenerskey parbinaryconcatMapsuperstructshamregularprogressaccessortraverseES2021polyfillelbreducewritableinstrumentationtypedarrayslockfileerrorlook-up256react-hook-formperformantvpcfastmanagerwidthexecutewgetURLSearchParamsmatchAll.gitignoreargvredirectpropregular expressionsECMAScript 2017Array.prototype.containsYAMLsesObservableswhichES2023languagemake dirflatmatchbrowserlistpromisenpmforkreal-timesource mapqueueMicrotaskReactiveExtensionssafedotenvES2015readablestreamFloat64Arraydebuggersortedcollection.es6typanionmrucallbounddescriptiongitignorejapanesevalidationtypenodejsArray.prototype.findLastrecursiveECMAScript 5nodeprivate datasymbolsRFC-6455sqsrequestterminalcallcloudsearchtermlogArrayBuffer.prototype.slicees-shim APIuser-streamsrestfulecmascriptArrayBuffer#slicecharsetchinesefunctionalInt32Arraykoreanavaregexpexpressassignutiles7glaciercss-in-jsfast-deep-cloneequalitycorecopyinferencedropemrincludesrssbufferistanbulreact animationindiffprototypeescapeimportexportautoprefixeroffsetfeedkeyenderserializecolumnsStreamimmericureversestructuredClonesuperagentcompilersortobjectfilterroutingObject.entriesconcatarrayscodesstoragegatewayairbnbfunctioncall-boundstyled-componentschildjQuerycircularexpressiongetPrototypeOfrapidPushes2017idloadbalancingforEachponyfillsinatratypedarraysymbolcurloptiondescriptorsvaluespathArray.prototype.findLastIndexsymlinksworkerlocalbeanstalktoobjectstarterECMAScript 6flageast-asian-widthefficientECMAScript 7Object.isamazonhelpersshrinkwrapES2022parserES5clonemockoptimizerentriesarktypekey valueequalinternalhigher-orderdefinePropertystringifiertc39streampackage.jsoncall-bindclientpackageSymbol.toStringTagmomentoutputdynamodbtesterbrowserslistpopmotionhookstapereducerhookformatomwaitslicefigletCSSStyleDeclarationspeces2018front-endfpsreversed
2.8.63

1 year ago

2.7.62

1 year ago

2.7.61

1 year ago

2.7.60

1 year ago

2.7.63

1 year ago

1.7.58

1 year ago

1.7.59

1 year ago

1.7.60

1 year ago

1.6.57

1 year ago

1.6.56

1 year ago

1.6.58

1 year ago

1.6.55

1 year ago

1.6.54

1 year ago

1.5.54

1 year ago

1.5.53

1 year ago

1.3.25

1 year ago

1.4.39

1 year ago

1.3.28

1 year ago

1.4.38

1 year ago

1.3.29

1 year ago

1.2.17

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.2.18

1 year ago

1.2.19

1 year ago

1.5.50

1 year ago

1.5.52

1 year ago

1.4.40

1 year ago

1.5.51

1 year ago

1.4.42

1 year ago

1.3.31

1 year ago

1.4.41

1 year ago

1.3.32

1 year ago

1.2.20

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

1.3.30

1 year ago

1.4.46

1 year ago

1.3.35

1 year ago

1.2.23

1 year ago

1.4.45

1 year ago

1.3.36

1 year ago

1.2.24

1 year ago

1.4.48

1 year ago

1.3.33

1 year ago

1.2.21

1 year ago

1.4.47

1 year ago

1.3.34

1 year ago

1.2.22

1 year ago

1.4.49

1 year ago

1.3.37

1 year ago

1.2.25

1 year ago

1.3.38

1 year ago

1.4.50

1 year ago

1.2.16

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.0.14

1 year ago

1.1.14

1 year ago

1.0.11

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