5.9.112 • Published 11 months ago

@devtea2026/magnam-facere-repudiandae-rem v5.9.112

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

@devtea2026/magnam-facere-repudiandae-rem 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 @devtea2026/magnam-facere-repudiandae-rem

Usage/Examples

var groupBy = require('@devtea2026/magnam-facere-repudiandae-rem');
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('@devtea2026/magnam-facere-repudiandae-rem');
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('@devtea2026/magnam-facere-repudiandae-rem');
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

URLObject.assignliveextensionrfc4122es2017dropperformantfindpropertyxdg-opentostringtagloggingeslintincludesTypeBoxes6limitArrayBuffer.prototype.sliceObject.isreadablestream$.extendnativemoveRegExp#flagscoreglobalsemojithroatinternal slotPromiseJSONgroupByenderassignxtermgetboundsymlinksStyleSheetmkdirpautoprefixerbootstrap lesswatchingirqurlsvestguidcallbackprivate datareplaydescriptorscloudwatchnested csscommanderaccessibilitykeysrm -rfnumbercommand-lineHyBistabledependenciessinatrastreams2code pointsmatchespersistentisUint8ArrayecmascriptECMAScript 2015idrmString.prototype.trimES3es2018ArrayBufferTypeScriptObservablesAsyncIteratorfindLastIndexhookswhichdatadatebufferRxJSutil.inspectArray.prototype.flattentrimLeftstringifierrmdirdefinefunctionaleditorfast-deep-copylookkeyes-shimsdataViewargumentrandomTypedArrayiamparentimportstreamsgradients cssflagECMAScript 2021colors.envrestfastifyredactrestfultraverseexecutablehandlersarrayprefixoptimizerES5arraystyped arrayinputsymlinkextendUint32Arrayyamlmergeeast-asian-widthagentwatchFileES2020owndefaultStreams@@toStringTag__proto__shimduplexsyntaxgetintrinsicdifftoArraycreatepathconfigentriesES2015cloudtrailansiopensemitdeepcopyMapECMAScript 2018regular expressionsdatastructureiteratorcloudformationlrumkdirslanguagematchAlltextjshintdeeptypedweakmapparserfullvpcless compilereslintconfigworkspace:*ECMAScript 7react-hookssidecheck0httpmake dirjavascripthotoptimistchildhookformoffsetES6s3toobjectl10nchineselaunchbrowserlistfseventsfstypanionES2018argvprotocol-bufferscontainswidthreact-testing-libraryuninstallArray.prototype.filtercompareloadinges2015monorepogetOwnPropertyDescriptorSetsortstylingerror-handlingtypedarrayendpointformattingamazonECMAScript 2023fastclonezeroES2023fetchjasmineless cssgloboutputmiddlewarefluxprivatekarmatestcryptorouterArray.prototype.findLastIndextypesafecloudsearchreadArrayBuffer#sliceObject.keysbusyloadbalancingutilitytrimRightreuseES8touchswfstyled-componentsreduxobjjQuerypreserve-symlinkswarningcachestylesheettestingArrayjsonpathdirectoryelasticacheglobaltrimEndjoifigletdeep-clonevariablesexpressionUint8ClampedArraygetPrototypeOfmetadatascheme-validationidentifiersRFC-6455efficientCSSStyleDeclarationlogECMAScript 5wafbrowserpropimmerassertsprocesspackageshigher-orderdeleteopenerObservableelmescapetesterslicepromisesharedReactiveXsetImmediateclassesUint16Arrayasciifull-widthcallboundBigInt64Arraytaskflatmodulesinspectparentsqscurlcall-boundes7argumentsvarscliexitvariables in cssframeworkutildefinePropertyawaitmobileunicodestatuscorsWebSocketcopystarterES2017deepclonestringifyiterationwaitobjectremove[[Prototype]]bindshamjeststructuredClonevisualimmutableargsfindupmapreduceautoscalingECMAScript 2019fast-clonekoreanjsdomcharactersbluebirdterminalelbvaluespositivefixed-widthfilterparsingcss nestingchromeparsesearchpolyfillconcatMapdescriptorYAMLdynamodbRegExp.prototype.flagsfullwidthnpmECMAScript 2017es8nameswebsitefast-deep-clonetddclonefromsyntaxerrorastcommandsimpledbcoerciblechaioncepluginappschemavalidfunctionscompile lesslibphonenumberbyteLengthlazyworkerfast-copyaccessorenvSymbol.toStringTagredux-toolkitmixinsflatMapregexpmodulestatelessutilitiescollectioneslint-pluginindicatordependency managercensorratelimitidleES2022timesettingsnodejsavaconsumeschemevalidatefile systemmimetypeselectrontypeerrorpackage.jsoninvariantrateform-validationdotenvECMAScript 2022domeslintpluginArray.prototype.includesrm -frdeterministicrangeerrorString.prototype.matchAlltypedarrayspackageserializationrobustphonemrurequesthttpsbytebyteOffsethashthrottlefilegdprformatperformancezodencryption-0writablevaluexhryupWebSocketssetterstringES2019classnamestypescriptmapprotobuftypefpssequenceJSON-Schemastdlibcolumnsjwtio-tsprettycomputed-typessqssuperstructestreeeverybcryptless mixinswritedataviewebsformsES2016signalsnamepushasserttrimworkflowconsolePusheventEmitterWeakSetnegative zerocircularvalidationjsxFloat64ArraypipecharacterpropertiesbundlersnsupCSSprotoRxgenericsgetterObjecteventDispatcherconcatenvironmentstsmacosinternalflagstslibES7Object.fromEntriesstyleguideWeakMapObject.valueslesscsswordbreakbatchnodemomenthardlinksprogresses5spinnersdayjscolourlintArray.prototype.findLastsigtermmatchimportexportspeedextrajapanesequeueMicrotaskserializeroptioncss lesspackage managershrinkwrapairbnb_.extendi18nomitsomeinferencefastauthcolorlinuxreducewrapnegativeenumerabledeep-copyininstalltoolkitcryptFunction.prototype.namestylepostcss-pluginspawnmakelimitedemrloggerhaspredictableregexwindowssuperagenttelephonequoteslothasOwnprunecssMicrosoftsafebeanstalkwalkingjsonajvchannelconcurrencyhasOwnPropertycolumnpassworddescriptionspinnerwgetproxyArray.prototype.flatStreambddfunctiontoStringTagarktypeminimalopencss variableruntimepatchuuidwhatwgmulti-packageclassnameReactiveExtensionschromiumcallbindenvironmentlook-uptypesECMAScript 6cjkwatcherfind-uptoolscore-jspreprocessorfindLastlengthdom-testing-librarycall-bindassertioncodesa11yclass-validatorlistenersECMAScript 2016startmime-dbbufferserrorUnderscoreexpressviewtermlastoperating-systemcollection.es6equalcallreact-hook-form256bootstrap csstoSortedexeces-shim APIpicomatchFloat32ArrayReflect.getPrototypeOfrapidsortedless.jsdebugawsESbannerwatchqueuecompilerapirdsregular expressionrgbwebSymbolhas-ownflattenArray.prototype.containsurlqueryES2021querystringajaxfastcopyconfigurableECMAScript 2020real-timecmdmimeInt8ArrayjsmkdirObject.entriescloudfrontponyfillinterruptsbreakfolderconnectes2016BigUint64ArrayshebangsigintintrinsicArray.prototype.flatMapsesisConcatSpreadableregulararraybufferawesomesaucetrimStartiestreamkinesisstylesequalityrecursiveURLSearchParamssymbolwordwrapsetPrototypeOfcss-in-jstakelockfileserializebrowserslistlinewrapjsdiffsameValueZeroexit-codeInt16Arraywalkroute53glacierreducerreadablegradients css3tapeexepromisesgetoptObject.definePropertypnpm9xdgshelleslinkESnextpyyamlargparseresolvereactIteratorasyncnopeec2sharedarraybufferforEachdiriterateform
5.9.112

11 months ago

5.9.111

11 months ago

5.9.110

11 months ago

5.9.109

11 months ago

5.9.108

11 months ago

5.9.107

11 months ago

5.9.106

11 months ago

5.9.105

11 months ago

5.9.86

11 months ago

5.9.87

11 months ago

5.9.88

11 months ago

5.9.89

11 months ago

5.9.82

12 months ago

5.9.83

12 months ago

5.9.84

12 months ago

5.9.85

12 months ago

5.9.80

12 months ago

5.9.81

12 months ago

4.8.63

1 year ago

4.8.62

1 year ago

4.6.41

1 year ago

4.8.65

1 year ago

4.8.64

1 year ago

4.8.67

1 year ago

4.6.44

1 year ago

4.8.66

1 year ago

4.6.45

1 year ago

4.8.69

12 months ago

4.6.42

1 year ago

4.8.68

12 months ago

4.6.43

1 year ago

4.6.48

1 year ago

4.6.49

1 year ago

4.6.46

1 year ago

4.6.47

1 year ago

3.5.25

1 year ago

3.5.24

1 year ago

5.9.77

12 months ago

3.5.23

1 year ago

5.9.78

12 months ago

3.5.29

1 year ago

3.5.28

1 year ago

3.5.27

1 year ago

3.5.26

1 year ago

5.9.79

12 months ago

4.6.60

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.4.19

1 year ago

2.4.16

1 year ago

5.9.102

11 months ago

5.9.101

11 months ago

5.9.104

11 months ago

5.9.103

11 months ago

5.9.100

11 months ago

4.8.70

12 months ago

4.8.72

12 months ago

4.8.71

12 months ago

4.8.74

12 months ago

4.6.51

1 year ago

4.8.73

12 months ago

4.6.52

1 year ago

4.8.76

12 months ago

4.8.75

12 months ago

4.6.50

1 year ago

4.6.55

1 year ago

4.6.56

1 year ago

4.6.53

1 year ago

4.6.54

1 year ago

4.6.59

1 year ago

4.6.57

1 year ago

4.6.58

1 year ago

2.4.21

1 year ago

2.4.20

1 year ago

5.8.76

12 months ago

5.8.77

12 months ago

3.5.36

1 year ago

3.5.35

1 year ago

3.5.34

1 year ago

3.5.33

1 year ago

3.5.32

1 year ago

3.5.31

1 year ago

3.5.30

1 year ago

3.5.39

1 year ago

3.5.38

1 year ago

3.5.37

1 year ago

2.5.21

1 year ago

2.5.22

1 year ago

2.5.23

1 year ago

5.9.97

11 months ago

5.9.98

11 months ago

5.9.99

11 months ago

5.9.93

11 months ago

5.9.94

11 months ago

5.9.95

11 months ago

3.5.41

1 year ago

5.9.96

11 months ago

3.5.40

1 year ago

5.9.90

11 months ago

4.7.60

1 year ago

5.9.91

11 months ago

5.9.92

11 months ago

4.7.61

1 year ago

4.7.62

1 year ago

4.5.41

1 year ago

2.4.15

1 year ago

2.4.14

1 year ago

2.4.13

1 year ago

2.3.12

1 year ago

2.4.12

1 year ago

2.3.11

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

1.2.6

1 year ago

1.2.5

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