3.7.97 • Published 10 months ago

@diotoborg/est-beatae v3.7.97

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

@diotoborg/est-beatae 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 @diotoborg/est-beatae

Usage/Examples

var toSorted = require('@diotoborg/est-beatae');
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('@diotoborg/est-beatae');
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('@diotoborg/est-beatae');
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

Int8Array__proto__Function.prototype.nametypeerroriterateCSSStyleDeclarationtyped arraylazyconcatbrowserslistjwtArrayBuffer#slicepackage managerflatMapwaffindLastIndexbootstrap lessoncefindLastes2017reduceschemequoteYAML0HyBiregular expressioncolorwindowsownes-abstractStreamsterminalfnmatchnpmpackagesJSONmapback-endflatsyntaxgetopttransportnodejsoptiontrimStartdayjsaccessorkeysjshintquerystartercommand-linerapidglacierrangeerrorpropertieses8livewidthdescriptorforEachshellparsertrimLefttranspilerexecfilesafetoobjectpyyamlObservablesendpointbeanstalkencryptionstringifyexit-codecallbindpruneWebSocketspinoSystem.globalclassesWeakSetmapreduceelbkoreanruntimeposeUnderscorestreamfile systemzeroformatcontainstoolkitparsetraversehotenvironmentAsyncIteratorbootstrap csspersistentidentifiersutilsArray.prototype.findLastless.jsregexPushiterationcharacterglobal this valuepatchMicrosoftgetPrototypeOfreact poseRegExp.prototype.flagsauthsymbolRxchaideep-cloneESoptimizerservicereducerdeepRxJSdatastructureinstallfast-cloneECMAScript 6vestprotobufinputeslintpolyfillsuperstructthreefluxclass-validatorsuperagentzodfulltypemoveacornhashttpcss lessajvsyntaxerrorArray.prototype.flattenarktypeworkershimi18njestprotocol-buffersidlebusyfunction256datapromiseObject.entrieshigher-orderECMAScript 2019make dirless compilerdeterministiccore-jsespreetelephoneECMAScript 7formattingartfastgroupByfast-deep-clonebabeldirectoryserializermockcss-in-jsvaryupes5objectArrayBufferUint32Arrayeffect-tsttyworkflowECMAScript 2015toStringTagdescriptorsdirrequiresortedMapWebSocketslicehas-ownES2023viewsharedarraybuffercodespicomatchCSSstyled-componentsbrowserlistimmutableIteratorwarningirqloggerunicodea11yECMAScript 2022ecmascriptObjectloadbalancingmakeeslintconfigsetPrototypeOfexpressionimportuninstall.gitignorextermwindownames3json-schemalessReflect.getPrototypeOflrufindjscloudsearchglobalThisconsolechineserulesvariablesminimalspinnerssymbolsbddlinksymlinkpluginnopeFloat64ArrayUint8Arrayvariables in cssexeccolumns3ddiffweaksetfullwidthrequestpostcssframerconfigurabledeepcopyreact-hook-formreplayjavascriptECMAScript 5ECMAScript 3inferencepostcss-plugintslibexecuteclassnamechannelvalidatewaapiinvariantStreamhandlerdependenciescurrieddomRegExp#flagsfigletstringconsumebannerresolvesideenumerablefast-deep-copyautoscalingreact-hooksefficienttypescriptcopydataViewredirectserverbyteOffsetes2015zxlintcoercibleassignsignalsharedES2018someestreestringifiermonorepohandlerspoint-freecollection.es6certificatesasterisksECMAScript 2021swfflagsawsdeletequerystringarraybufferfetchimmerfiltermkdirpmomenttrimRightequalmatchvalidationfantasy-landreadableomitregexpharmonychromiumchromegroupastArray.prototype.containsdeepcloneconstawesomesaucereact$.extendprivatetddcachegraphqlFloat32Arrayfunction.lengthaccessibilityscheme-validationvaluecensorextrareusedefinePropertycommandES2019redux-toolkites-shim APIperformant.envES7indicatoriepredictableeventshardlinkscollectionclitostringtagoptimisttypedarrayrandomtypedcolourseseshookformtermmockingescapeECMAScript 2018toArraywhatwgJSON-Schemaiamform-validationcloudformationES8eslint-pluginspringintrinsicselftypedarraysWeakMapconfiginoperating-systemnested cssenvironmentscolorsweakmappopmotiondom-testing-libraryrobustio-tsuploadtypanionArray.prototype.includesexpresslength_.extendshamStyleSheetforkexitpnpm9schemaArrayBuffer.prototype.sliceECMAScriptrgbglobl10nmoduleremovees2018csshashanimationpackage.jsongetOwnPropertyDescriptorhooksfront-endRFC-6455getroutepushpurepasswordnumberprotoutilitiesxhrsigintprocessstatesimpledbnegative zeroglobal objectenvqscss variableerrorpathtc39queueMicrotasksignedajaxsqsmobilepreprocessorObservableargsurljQueryignorejsdiffReactiveExtensionsenderelasticacherdsbuffersubprocessdatevarsclonepositiveURLtouchgetterloadingkinesistypeofprogressES2020storagegatewayjsonschemaopensslwritebinary
3.7.97

10 months ago

3.7.96

10 months ago

3.7.95

10 months ago

3.7.94

10 months ago

3.7.93

10 months ago

3.7.92

10 months ago

3.7.91

10 months ago

3.7.90

10 months ago

3.7.89

10 months ago

3.7.88

10 months ago

3.7.87

10 months ago

3.7.86

10 months ago

3.7.85

10 months ago

3.7.84

10 months ago

3.7.83

10 months ago

3.7.82

10 months ago

2.7.82

10 months ago

2.7.81

10 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.7.75

11 months ago

2.7.74

11 months ago

2.7.73

11 months ago

2.7.72

11 months ago

2.7.71

11 months ago

2.7.70

11 months ago

2.7.69

11 months ago

2.6.69

11 months ago

2.6.68

11 months ago

2.6.67

11 months ago

2.6.66

11 months ago

2.6.65

11 months ago

2.6.64

11 months ago

2.5.64

11 months ago

2.5.63

11 months ago

2.5.62

11 months ago

2.5.61

11 months ago

2.5.60

11 months ago

2.5.59

11 months ago

2.5.58

11 months ago

2.5.57

11 months ago

2.5.56

11 months ago

2.5.55

11 months ago

2.5.54

11 months ago

1.5.54

11 months ago

1.5.53

12 months ago

1.4.53

12 months ago

1.4.52

12 months ago

1.4.51

12 months ago

1.4.50

12 months ago

1.4.49

12 months ago

1.4.48

12 months ago

1.4.47

12 months ago

1.4.46

12 months ago

1.4.45

12 months ago

1.4.44

12 months ago

1.4.43

12 months ago

1.4.42

12 months ago

1.4.41

12 months ago

1.4.40

12 months ago

1.4.39

12 months ago

1.4.38

12 months ago

1.4.37

12 months ago

1.4.36

12 months ago

1.4.35

12 months ago

1.4.34

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.3.31

1 year ago

1.3.30

1 year ago

1.3.29

1 year ago

1.3.28

1 year ago

1.3.27

1 year ago

1.3.26

1 year ago

1.2.26

1 year ago

1.2.25

1 year ago

1.2.24

1 year ago

1.2.23

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

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