4.4.89 • Published 10 months ago

@taktikorg/voluptas-recusandae v4.4.89

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

@taktikorg/voluptas-recusandae Version Badge

github actions coverage License Downloads

npm badge

An ESnext spec-compliant Object.groupBy 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.

Getting started

npm install --save @taktikorg/voluptas-recusandae

Usage/Examples

var groupBy = require('@taktikorg/voluptas-recusandae');
var assert = require('assert');

var arr = [0, 1, 2, 3, 4, 5];
var parity = function (x) { return x % 2 === 0 ? 'even' : 'odd'; };

var results = groupBy(arr, function (x, i) {
    assert.equal(x, arr[i]);
    return parity(x);
});

assert.deepEqual(results, {
    __proto__: null,
    even: [0, 2, 4],
    odd: [1, 3, 5],
});
var groupBy = require('@taktikorg/voluptas-recusandae');
var assert = require('assert');
/* when Object.groupBy is not present */
delete Object.groupBy;
var shimmed = groupBy.shim();

assert.equal(shimmed, groupBy.getPolyfill());
assert.deepEqual(Object.groupBy(arr, parity), groupBy(arr, parity));
var groupBy = require('@taktikorg/voluptas-recusandae');
var assert = require('assert');
/* when Array#group is present */
var shimmed = groupBy.shim();

assert.equal(shimmed, Object.groupBy);
assert.deepEqual(Object.groupBy(arr, parity), groupBy(arr, parity));

Tests

Simply clone the repo, npm install, and run npm test

momentcopyprocessrequireebsSymbolentriescommand-lineformattingObservablematchescall-bindflatMapbabelglobalshotshamserializeECMAScript 2023extrasigintmockingsigtermrapidqueueMicrotaskcollectionenvreplaytoobjectIteratorflagsflatsymlinkstransportvalidatorcss lesses2016@@toStringTaghttprangeerrorsharedECMAScript 2017cloudwatchquerycompileropensslasciiRegExp#flagswaitartphoneURLSearchParamsstableelbprivatebinariesWebSocketsauthenticationpathprivate datamapfpnativeES7global objectcoerciblecloudtraildeepclonedependency managerairbnblibphonenumberECMAScript 7full-widthsyntaxjsdomfindLasttrimStarthelperyupsetponyfillESObjectespreees-abstractloggingspringtraversestatepreprocessortoSortedECMAScript 2016snscss variablewhichparserJSON-Schemaslotes8iteratorvestes2017Object.keysvpcmobilecore-jsform-validationcryptoemitgenericsdatapicomatchArray.prototype.containsrulesReactiveExtensionsdomArray.prototype.includesbusyieconfigiamchinesePushHyBiiterationutilsassertnumberchromiumequales2018bufferfastdatastructuregetfpsglobaltoolkitrequestcompile lessbinarytyped arrayvisualreact animationless mixinsES2020eslinthookstestuninstalllazyless.jsfromnamestermregular-expressionvariables in csstoStringTagsymlinkenvironmentreduceraccessibilitylesscsseslint-pluginbundlerelasticachepackageseslintconfig3ddeepmakepackage.jsonmockArraycjkFloat32ArrayECMAScript 2022react-hooksloggerwafwritehas-ownfunction.lengthreadablerobustecmascriptdirES2022nested cssstatelessCSSWebSocketcloneintrinsicmacosuser-streamsRFC-6455bines6ECMAScriptECMAScript 2019localvalidationshim_.extendelectronredactpurefiltertypeexecfileMicrosoftdescriptiontypanionparse6to5apistartercensoreventsswfasteriskssafegesturesstringifysimpledbcolouranimationbeanstalktimeservicesuperagentsignalsclieslintpluginECMAScript 2015Int16ArraytoArrayworkspace:*preserve-symlinksservercryptformatarrayreduxpipesymbolextenddynamodbfetchfront-endjsonmulti-packageexit-codeArray.prototype.filterargvkoreanTypeScriptweakmapbootstrap cssowndifffilejoifulloptimizerregularsortedObject.valuesenumerablecurlobjxhrkeypluginbrowserlistreuseinvariantjson-schema-validationflattenArray.prototype.findLastUint16Arraygloblastescapesymbolsidentifierstoolspolyfillhardlinksimportexportfluxfigletvalidateramdaio-tsrgbfullwidthinternalcomparebundlingendpointconstcircularautoprefixertesterArray.prototype.flatflagassertionbabel-corevalidcssfixed-widthefficientdayjsviewObject.fromEntriesRxJSstoragegatewaypackage manageroptionestreegraphqles-shimsmrugetPrototypeOfyamlES2019mapreducecertificatesperformanceinpostcss-pluginnpmignoredependencieswarningtypesafelistenersdeep-copyAsyncIteratormake dirreactdataviewreact-testing-librarypropertyconsumebyteLengthcallbindsetPrototypeOfES2023RegExp.prototype.flagssetterwaapigetOwnPropertyDescriptordatetypedES2017jsdifffindLastIndexshebangroutingoperating-systemES3classnameslengthchromelanguageacornpoint-freecheckBigUint64Arrayposees-shim APItc39gradients css3touchtestinges2015concatMapauthproxyeffect-tsimmutablechaipromisegetoptfast-deep-clonedefinepushUint8ClampedArrayreact-componentindicatorharmonyoffsettsserializerless cssless compilerbytecontainstypescriptvarruntimesyntaxerrorapolloimmerfastifyfastcloneexpressionjapanesepopmotioncurriedlinuxUint32ArrayECMAScript 2021String.prototype.trimtostringtagtrimpruneassignarktypetypeofeventDispatchercallSymbol.toStringTagcreatespecreal-timeURLmonorepoECMAScript 5handlerprogressmatchAllconfigurabledeep-clonevariablesYAMLjestcommanderObject.isuploadworkerdropgroupByexithookformqsbootstrap lessweaksetES2015inference256ES2016nopeisnamecolumndotenvcomputed-typesignorestylePromisemanagerlockfilerouteinterruptsWeakMapequalitydescriptorsmatchrecursiveECMAScript 6s3trimEndtranspilebuffersbrowserprotocol-buffersredux-toolkitcollection.es6windowsshelltaketranspilerclienttypedarrayArrayBuffer#slicekinesisawsStreamsimportfunctionframerstylesheetMapstatuseveryregular expressionBigInt64Arraygetintrinsicsequencekeysgroupinternal slotnodepropertieshigher-orderquerystringpinoobjectStreamcss nestingprototypeamazonlivegdpremrback-endTypedArrayloadingi18nmodulejavascriptsortpnpm9stringminimalUnderscorejsmixinsforEachhashaccessorfile systemresolvefsvaluesarraybufferunicodeschemesetImmediateschemamkdirphasreadjsxjshintTypeBoxhasOwnPropertytrimRighta11yESnextsliceWeakSetlessspawnRxbyteOffsettelephoneinspectgitignoreReflect.getPrototypeOfES2021subprocessinputcall-boundrandomelmexecremoveisConcatSpreadableinstallerwritableloadbalancingprotoreducees5eventEmitterlogES5regexpec2linkiteratextermprefixfunctionalencryptionprotobufcss-in-jsajaxstyleguideprettystyled-componentspyyamlterminalglobal this valuenpmirqreadablestreampositivegetterglobalThisjwtObject.getPrototypeOffast-clonecloudsearchfnmatchautoscalingomitcolumnsObject.definePropertyjson-schema-validatorsidepasswordwgetECMAScript 2020fast-copynegative zerovarscharacterbrowserslistselfstructuredClonescheme-validationdirectoryarraysglaciercommandwindowdeletestylingbannersomeurlassertsdefinePropertymetadatastyleshandlersdeterministic$.extendzodutilitiesdataViewObservablesArray.prototype.flattenclass-validatorReactiveXnegativeexpressfastcopyJSONArray.prototype.flatMapjsonschemafantasy-landtacitUint8ArraybinddescriptorconsoleonceCSSStyleDeclarationidlequotequeue.envwhatwgdragstringifier.gitignoreArrayBuffer.prototype.sliceserializationroute53Int32Arrayincludesstreamserror-handlingcallboundtddhttpstslibjson-schemattyhasOwnshrinkwrapmovesuperstructbddenvironmentspersistentajvmergeES8codesfindtextoutput__proto__ES6executepostcssmkdirsInt8ArrayperformantES2018Array.prototype.findLastIndexcoreObject.entriesasynclintutilcloudformationsignalstreamoptimistchannelagentcolorreact-hook-formes7value0ansirdsclassnamesesdom-testing-libraryclassestypespropreact posefast-deep-copysqsString.prototype.matchAllworkflowbcryptsharedarraybufferStyleSheet-0widthcloudfrontSetcallbackformhelperstypedarraysargumenttrimLeftmkdirFloat64ArraychildspeedECMAScript 3argsSystem.globalboundinstallpatchcachefunctionswalkl10nzerospinnerjQueryeast-asian-widthzxmodulesawesomesauceastutil.inspectregexredirectspinnersesgradients cssenderFunction.prototype.name[[Prototype]]lruletECMAScript 2018settingsconcatlocationpredictable
4.4.89

10 months ago

4.4.88

10 months ago

4.4.87

10 months ago

4.4.86

10 months ago

4.4.85

10 months ago

4.4.84

10 months ago

4.4.83

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

11 months ago

4.3.72

11 months ago

4.3.71

11 months ago

4.3.70

11 months ago

4.3.69

11 months ago

4.3.68

11 months ago

4.3.67

11 months ago

3.3.67

11 months ago

3.3.66

11 months ago

3.3.65

11 months ago

3.3.64

11 months ago

3.3.63

11 months ago

3.3.62

11 months ago

3.3.61

11 months ago

3.3.60

11 months ago

3.3.59

11 months ago

3.3.58

11 months ago

3.3.57

11 months ago

3.3.56

11 months ago

3.3.55

11 months ago

3.3.54

12 months ago

3.3.53

12 months ago

3.3.52

12 months ago

3.3.51

12 months ago

3.3.50

12 months ago

3.3.49

12 months ago

3.3.48

12 months ago

3.3.47

12 months ago

3.3.46

12 months ago

3.2.46

12 months ago

3.2.45

12 months ago

3.2.44

12 months ago

3.2.43

12 months ago

3.1.43

12 months ago

3.1.42

12 months ago

3.1.41

12 months ago

3.1.40

12 months ago

3.1.39

12 months ago

3.1.38

12 months ago

3.1.37

12 months ago

3.1.36

1 year ago

3.1.35

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

2.0.27

1 year ago

2.0.26

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

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