3.7.84 • Published 11 months ago

@hishprorg/autem-minus v3.7.84

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

@hishprorg/autem-minus 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/autem-minus

Usage/Examples

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

makewindowdependency managerECMAScript 2021Object.getPrototypeOffnmatchsubprocessrulescomputed-typespinosetPrototypeOfflattenentriespackagessyntaxerrorfetchhigher-orderavaassignvariableslrusymbolsclass-validatorES2020takeflatMapSymbol.toStringTagwidthamazoncolumnminimalcjkawsfast-deep-clonetc39validistanbulRFC-6455real-timesortedtesterES2016typesoptimizerprotocol-buffersArrayBuffer.prototype.sliceebsdragsinatraURLSearchParamsbyteOffsetcommandSystem.globalString.prototype.matchAllparsermovejsongesturesrapidtostringtagbinariesglobals0shimfastES2022mobileArrayBuffer#sliceclientmatchAlldeepdefinereworkrandomterminalstylingautoscalingECMAScript 2022channelshellimmutabledeep-clonemkdirreadablewaapireact animationprotobufoutputregular-expressionomitbuffersfast-deep-copyzeroreact poseTypedArraysnspropertiesutilitiescompareiteratorvarsfastcloneECMAScript 2015accessorIteratorxhrtimepropRegExp.prototype.flagsYAMLworkspace:*purezodhttputilssameValueZerordsnodeaccessibilityredactcloudsearchstartercoverageURLidleinferencespeedzxsafefpspackage.jsonfast-copytapemrubindbddAsyncIteratores8es6callbackisPushpromisetapform-validationbrowserslistECMAScript 2020airbnbstructuredClonetoolkitfunctionstransformReflect.getPrototypeOfeventsapollobinaryuuidtraversepostcsslistenersparsequeuecloudtrail-0momentES2018cloudformationloggingCSSRxJShasOwnPropertyflagspinnersreducerefficientcode pointsjQueryshrinkwrapwaittelephoneclonecontainsinstallerlook-upgetoptsymboldeepclonereadablestreamjasminestoragegatewayenvjavascriptpluginerrorObject.definePropertyjsxpackageurlecmascriptcryptoregexgetterflatdropvarcall-boundarts3tddInt32ArrayramdatrimEndjsdiffmetadataroute53east-asian-widthECMAScript 3routevestECMAScript 6json-schema-validationObject.fromEntriesstringifier$.extendvaluetoReversedinFloat32Arrayrequestestreeflagsequalexecjson-schema-validatorfromextradayjsequalityinvariantnpmignoreglobal this valuecorekarmamkdirsremovestylesInt8ArrayECMAScript 2016SymbolquerytypescriptWebSocketletrouterjoigetOwnPropertyDescriptorhasOwntypeprivatemapreducetslibtypedarrayobjdiffspringincludeses-abstractvalidateFloat64ArraylanguagecacheboundglobalThisfindcharactersObject.assignconsolesliceECMAScript 7ec2kinesisbabel-coreES2015css-in-jsArray.prototype.findLastIndextoobjectajaxqueueMicrotaskUint8ClampedArraycompilerfunctiones-shimstranspileruser-streamsassertses2018walkingimportes7ECMAScript 2019Array.prototype.includesCSSStyleDeclarationshebang6to5UnderscoredefinePropertyatomregulartypesafefpprocessECMAScript 2018lookdataviewcurriedES2019toStringTagsetterautoprefixerstringifyforEachclassnamemulti-packagestringES2017l10nvaluesprettyfullwidthreadinstallrmuninstallapphooksmoduletrimStartframerconstponyfillsimpledbwhatwgexecutextermtoolscharacteryamlserializationObservablesjestslotresolvechromiumECMAScript 2017effect-tsexpressionhtmlObject.isESutilityformatcheckfeedrecursivetacitsource mapHyBiMapregexpUint16ArrayjapanesecurlcolorsSetes2015__proto__ECMAScript 2023reactrssbusysharedarraybufferelbsetnegativecreateschemaiamES7coercibleelasticache.envelectronReactiveExtensionses256typeerrorESnextmanagerhashlockfileArray.prototype.filternumbertextlocationcallboundstreamsoptiondescriptordeletetoSortedmatchenderdom-testing-libraryrm -frwgetastsettingsperformantbannerespreeprivate dataUint32ArrayenumerableemrPromisestablekey3dstyledeep-copydomreverserobustpyyamlguidsuperagenttransportisConcatSpreadablei18ntoArraydependencieschineseenvironmentes2016searchgraphqlproxyfile systemlintwarninggetintrinsicdataViewupprefixcommandermergeapireact-hook-formfindupnegative zeropatchJSON-Schemamake dirpushasterisksscheme-validationECMAScriptimportexportidentifiersgetPrototypeOfacornjscirculargrouptrimLeftregular expressionsdebuggerhookformworkflowagentreducermdirgetarrayownObservablecall-bindeverycolorfunctionalpoint-freelocalhas-ownnamestouchutilperformancewebbundlercloudwatchTypeScriptglobArrayBuffertypanioneventEmitterinstrumentationlinkfindLastIndexfilterloadingruntimeswfdescriptiondotenvansisyntaxcallbindMicrosoftvpcWeakSettsfindLastECMAScript 5rm -rfArray.prototype.findLastTypeBoxhardlinksdescriptorskoreanajvObjectroutingcssjsdomglacierrestharmonyrestfulObject.valuesnamejshintiterateobjectbyteargvconcatMappropertya11ynpmwhichieglobalserializerStreamfind-upconsumevalidationwafmapES3posedebugObject.entriestypedInt16Array_.extendcollection.es6specdeepcopysortArray.prototype.flattypedarraysbundlingprototypefantasy-landshareddir[[Prototype]]requireclianimationchaiconcatsetImmediateWebSocketspicomatchsidegitignoreemitpathtrimRightstreamprotomanipulationnodejsmochatermBigUint64Arrayfast-cloneunicoderedirectkeyses5pnpm9ES6calles2017writableinspectfull-widthES2023popmotionbincloudfronteslintpluginArrayUint8ArrayargsnativeyupRegExp#flagsregular expressionrgbReactiveXdirectoryendpointWeakMapgdprbeanstalkweaksetextendquotefoldereslint-pluginBigInt64Arraycopyhttpsclassesdynamodbfastifystyleguidecensorbrowserlistformattingmonorepofigletquerystringglobal objectJSONmodulesformspipeStreamsimmersesrfc4122asciibrowserredux-toolkitspinnerpackage managerintrinsicStyleSheetparentArray.prototype.flatMapprogresschildreact-testing-libraryio-tstyped arraythreeserializetranspiledateinputarktypeonce@@toStringTagassertfsgenericsreact-hooksqssqsviewloggerreusetrimemojilogfullarraybufferselfpolyfillbyteLengthxmlES5internalFunction.prototype.nameindicatorObject.keysnopematcheseslintparentshasjsonschemaeslintconfigeventDispatcherArray.prototype.flatten
3.7.84

11 months ago

3.7.83

11 months ago

3.7.82

11 months ago

3.7.81

11 months ago

2.7.81

11 months ago

2.7.80

11 months ago

2.7.79

11 months ago

2.7.78

11 months ago

2.7.77

11 months ago

2.7.76

11 months ago

2.6.76

11 months ago

2.6.75

11 months ago

2.6.74

11 months ago

2.5.74

11 months ago

2.5.73

11 months ago

2.5.72

12 months ago

2.4.72

12 months ago

2.4.71

12 months ago

2.4.70

12 months ago

2.4.69

12 months ago

2.4.68

12 months ago

2.4.67

12 months ago

2.4.66

12 months ago

2.4.65

12 months ago

2.4.64

12 months ago

2.4.63

12 months ago

2.4.62

12 months ago

2.4.61

12 months ago

2.4.60

12 months ago

2.4.59

12 months ago

2.4.58

12 months ago

2.4.57

12 months ago

2.4.56

12 months ago

2.4.55

12 months ago

2.3.55

12 months ago

2.3.54

1 year ago

2.3.53

1 year ago

2.3.52

1 year ago

2.3.51

1 year ago

2.3.50

1 year ago

2.3.49

1 year ago

2.3.48

1 year ago

2.3.47

1 year ago

2.3.46

1 year ago

2.3.45

1 year ago

2.3.44

1 year ago

2.3.43

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.3.40

1 year ago

2.3.39

1 year ago

2.2.39

1 year ago

2.2.38

1 year ago

2.2.37

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

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

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

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

1 year ago

1.0.11

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