1.0.0 • Published 22 days ago

@f1stnpm2/est-aspernatur-incidunt v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

@f1stnpm2/est-aspernatur-incidunt 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 @f1stnpm2/est-aspernatur-incidunt

Usage/Examples

var toSorted = require('@f1stnpm2/est-aspernatur-incidunt');
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('@f1stnpm2/est-aspernatur-incidunt');
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('@f1stnpm2/est-aspernatur-incidunt');
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

safeurlreadablestreamrandomcolumn256pathidtestswfesgetterrm -fres5connectstabletoobjectfull-widthescapeenvironmentdom-testing-libraryroute53variableseslint-plugincommandersnsstyled-componentsmergeObservableses-abstractapollol10nUint16Arrayrm -rfendpointcloudtrailCSStrimEndinputbootstrap lessES2020sortednamefile systemlesscss-in-jsidleObject.definePropertyRegExp.prototype.flagsnpmpackagei18nES7shellhardlinkscommandoperating-systempackage managerawsbrowserslistarraybuffertesterFunction.prototype.nameTypeScriptrequestglaciermimetypesemruninstallextensionarktypeargvECMAScript 2023findLastIndexindicatordayjsstringifierTypeBoxcompilermatchprocessfpscommand-linextermflattensearchless compilerdeepcopynodeelasticacheformattingajvArray.prototype.flattraverseoptioncoretouchproxytypedarrayoncejsdomECMAScript 2020less mixinses2016positivedependencieswatchFilecjkparenthas-ownminimaltoolkitsomeCSSStyleDeclarationcompile lesselmqueuewordwrapzeroio-tsvalidECMAScript 7tddassertslinewrapECMAScript 2017ES2016startertypescriptes2017reduxhookformprivate dataRFC-6455asyncparsingtermES2022rateinternalinternal slotreduceworkertrimLeftshebangcallcachemomentBigInt64ArraysharedarraybufferhttpES2017bundlingwritablefunctionformsArrayBufferRegExp#flagsrequireweakmapdefineconsolees2018outputconcatdeepwidtheast-asian-widthflatMapfromstyleArraydependency managernested csscallboundreadableclientgdpr[[Prototype]]makeflatgetObject.isObject.assignjson0hashentriesinspectquotemodulegradients css3Int16Arrayprotobufcolorsjasmineloadingreact-hooksObject.getPrototypeOfObjectserializerassertfastifypersistentmonorepotypesafeuphandlerscontainswebless cssredactdatemacosclassnamesworkspace:*efficientdeterministicchaiUint8ClampedArraytypaniontyped arraypatchObservableseswatchstylesheetirqexpresssuperstructURLcensorsetImmediatepredictableloggingmkdirswafprotocol-bufferskoreaninstalleres7chromiumremovebyteOffsetECMAScript 2019iterateWebSocketscomputed-typesframeworknopegenericsString.prototype.trimregexpargparsedynamodbsameValueZeroelbjsonpathsetPrototypeOfrapiddebuggerformzodlookargsruntimees-shim APIlimiterror-handlinggraphqlfoldernativeponyfilleslintconfigecmascriptawaitpreprocessorelectron$.extendArray.prototype.filterisConcatSpreadablerestes-shimsjsdiffdataviewECMAScript 2015ansikinesisfunctionstsless.jses2015RxJSStreamglobArray.prototype.includeslengthlesscssiteratorinterruptsmimemixinsinenderYAMLforEachauththrottlegetOwnPropertyDescriptorrfc4122getPrototypeOf@@toStringTagpackage.jsonexecmatchAlluuides8fetchvalidationmake dirdirectoryfixed-widthtrimwalkingECMAScript 2021ES8parserextradeep-clonetextguidiamarrayconcatMapcss nestingregular expressionsclassesqueueMicrotasksettingswatchingFloat32ArrayquerystringenumerablejsxJSONunicodewhatwgcolourArray.prototype.findLastIndexWeakMapmulti-packagebddformatstylingArray.prototype.flattenworkflowUint8Arraycore-jsproppolyfillbrowserliststoragegatewayreact-hook-formec2AsyncIteratortypes-0queryiterationmovetypeddeep-copyreadInt8Arraytypedarraysshrinkwrapdeepclonevaluesform-validationfluxPromise__proto__react-testing-library.envfast-cloneomitECMAScript 2016testingspeedcss lessfullwidthredux-toolkitcloudfrontgroupeslintpluginspinnersslicecryptcallbinddescriptordeleteobjairbnbECMAScript 3stringifySetSymbolajaxaccessorcorsbuffercheckrecursiveestreeperformantcharactersshamdiffgroupByReactiveXcloudformationtaskdirduplexstatelessES5statemkdirutil.inspecteventEmitterfsfindupwatcherloggerMapamazonscheme-validationrangeerrortostringtagwgettoArrayURLSearchParamswriteparsedescriptorsiexhrhigher-orderInt32ArraypluginfulljscharacterprettyintrinsiclinkvestpackagesfastcloneawesomesaucergbIteratorsettergetoptstylessharedvisualsymboltoolsObject.keyssinatrahelpersschemaclichannelresolveparents
1.0.0

22 days ago