4.4.89 • Published 11 months ago

@hishprorg/voluptas-nihil v4.4.89

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

@hishprorg/voluptas-nihil 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 @hishprorg/voluptas-nihil

Usage/Examples

var toSorted = require('@hishprorg/voluptas-nihil');
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('@hishprorg/voluptas-nihil');
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('@hishprorg/voluptas-nihil');
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

indicatorhttpvalidAsyncIteratorlistenersnpmignorelocationeslintrestfulrework0termstableeslintconfigargsbabelappESRegExp#flagsperformancereuseredactcolumnCSSwritabledebuggerinstrumentationjoioptiontoobjectcloudformationspinnerschannelharmonyemojistyletypedfast-deep-clonefastcopysetPrototypeOffileArray.prototype.flatMapmkdirserializercensortoolsexecSetcompilercopyes5.gitignorewafloadingsubprocesstestertoReverseds3folderURLStyleSheettostringtagrssECMAScript 2016installerbrowserslistArrayes-shimspyyamleventDispatcherES2017hasdependenciesstarterfast-copysesES20186to5make dirarrayslastmrupromiseutilityprotobuftypesafewaapiinferenceRxJSglobalreal-timeES2016matchdeterministiccolorsparsertrimStartxhrclitypeerrorhashtransformformattinggroupByes-abstractcommandclassnamessymlinkscallbackdebugPushconsumerulesignoregetPrototypeOfmkdirproute53superagentArray.prototype.containstypeofrouterES2023whatwgimmerchromees2017optimizerunicodeerrorexpressionfigletWeakMapenvString.prototype.trimECMAScript 2023modulequeryreact-testing-libraryReactiveExtensionsECMAScript 7String.prototype.matchAllfilteres6ArrayBuffer.prototype.slicecloudwatchObject.valuesacornclassnamees-shim APIstylingshimcollection.es6callboundforkstreamieReactiveXebsgenericsECMAScript 2018restjavascriptES3enumerableinspectvarECMAScript 2019function.lengthfpsnpmhelpernegative3dreadhardlinksObservablescheme-validationespreeupdeletepipejsnopeutil.inspecthigher-ordersymbolpackage.jsonawesomesauceshellutilES2019ES2020entriespicomatchajaxroutingjson-schema-validationyamlprettyreact posetrimglobgetterviewsharedarraybufferchromiumbusydatacolorfunctionsstylescontainsfindflattenES8lengthpackageObject.assignintrinsickarmacss-in-jscirculartranspilerparsebeanstalknamesArray.prototype.filterworkerredux-toolkitgetOwnPropertyDescriptordeep-clonedom-testing-librarypackagesequalityeslint-pluginUint8Arraycommand-linefnmatchextendUint8ClampedArrayfastclonearttelephoneformspushwritegdprES2015postcss-pluginreact-hookselasticacheObject.keyspluginfullwidthuuidendpointtrimEndformtransportpackage managerwaitschemearrayescapeECMAScript 3form-validationrdsdirpathboundYAMLstreamsdynamodbvalidatefrommodulesobjectlanguageinqueueMicrotaskmapreduceStreamObject.definePropertyUint16Arrayatomes8uninstallframeworkrequestassertregexptraversefixed-widthschemabundlerresolvekeyURLSearchParamshasOwnPropertyvaluessortedreduxbabel-coreiteratormockingextracoerciblewidthWebSocketsttyflatvalidatorroutenodegesturesconcatMapkeysistanbuleventEmitterthreeECMAScript 2015agentenderiscryptoObject.fromEntriesqsjQuerydirectoryidentifierstaperandomloggerinputcall-boundbinsideloadbalancingtypanionglobalssimpledbpostcssmetadataincludeses2018weaksetSymbol.toStringTagisConcatSpreadablelinttrimRightcall-bindregexxtermfindLastIndexsyntaxECMAScript 6validationefficientperformantequalcheckdataViewpatchfindLastmanagerIteratoroncees7phonebyteOffsetfull$.extendsetImmediatebrowserlistownspawnvisualnodejsRxdependency managerremoveapolloMicrosoftwgetxmlInt32Arrayvarsfind-upcloudtrailshamtddhookformconfigurablesomeES7fsjapanesecoverageproxyswfruntimeeslintpluginmovematchesserializationgraphqlassertseverytimeworkflowprocessspectrimLeftenvironmentssource mapexecuteconsoleaccessibilityFloat32Arraypoint-freeWebSocketdotenvelbcoremochaJSON-SchemacurriedmakeflagsBigInt64ArrayclassestapcommanderUint32Arraysettingschildregular expressionsnsreact-hook-formparentSymbolcollectionjsonschemasafeflatMapdayjsECMAScript 2017chineseES6guidInt16ArraydescriptionpropertygetintrinsicprototypenumberstoragegatewaymobileasciireacttoStringTagjshintjson-schemadefinebindfindupWeakSetbundlingES2021touchpropertiesramdashebangfile systememitregular expressionsRegExp.prototype.flagsoptimistBigUint64ArrayArray.prototype.findLastIndexrfc4122ArrayBuffer#slice[[Prototype]]configasyncECMAScript 2022UnderscoresetterJSONback-endzodsinatratoArrayutilitiesArray.prototype.flattenfastclass-validatores2015definePropertyES5groupfront-endhttpsimportexportimportwalkingservicees2016tslibnegative zerohooksObject.entries256installmomentnamebinariessearchrgbnativeeventsvariablesjson-schema-validatorRFC-6455csstacitstructuredClonetesttranspilehandlercloneletjasmineassertionArray.prototype.findLastframerforEachfast-cloneObjectelectrondomreadablestreamwebapiterminalmkdirsexecfileansitypesstringifierdeep-copytextqueueaccessorbddlocalconstprotomulti-packagesqsponyfilli18nworkspace:*gitignoregetfull-widthbannerurltypescriptcalljsdiffInt8Arraytypedarraycode pointsquerystringdropweakmapautoscalingfeedinvariantprefixoffsetdeepdeepcopystyled-componentsavaECMAScript 5helperscreatereversedcodescomputed-typespureuser-streamsyupassigneffect-tsquotecharacters@@toStringTagglacierArray.prototype.includes
4.4.89

11 months ago

4.4.88

11 months ago

4.4.87

11 months ago

4.4.86

11 months ago

4.4.85

11 months ago

4.4.84

11 months ago

4.4.83

11 months ago

4.4.82

11 months ago

4.4.81

11 months ago

4.4.80

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

12 months ago

4.4.69

12 months ago

4.4.68

12 months ago

4.4.67

12 months ago

4.4.66

12 months ago

4.4.65

12 months ago

4.4.64

12 months ago

4.4.63

12 months ago

4.4.62

12 months ago

4.4.61

12 months ago

4.4.60

12 months ago

4.4.59

12 months ago

4.4.58

12 months ago

4.4.57

12 months ago

4.4.56

12 months ago

4.4.55

12 months ago

4.4.54

12 months ago

4.4.53

12 months ago

4.4.52

12 months ago

4.4.51

12 months ago

4.4.50

1 year ago

4.4.49

1 year ago

3.4.49

1 year ago

3.3.49

1 year ago

3.3.48

1 year ago

3.3.47

1 year ago

3.3.46

1 year ago

3.2.46

1 year ago

3.2.45

1 year ago

3.2.44

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

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

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

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.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago