5.9.112 • Published 2 years ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

5.9.111

2 years ago

5.9.110

2 years ago

5.9.109

2 years ago

5.9.108

2 years ago

5.9.107

2 years ago

5.9.106

2 years ago

5.9.105

2 years ago

5.9.86

2 years ago

5.9.87

2 years ago

5.9.88

2 years ago

5.9.89

2 years ago

5.9.82

2 years ago

5.9.83

2 years ago

5.9.84

2 years ago

5.9.85

2 years ago

5.9.80

2 years ago

5.9.81

2 years ago

4.8.63

2 years ago

4.8.62

2 years ago

4.6.41

2 years ago

4.8.65

2 years ago

4.8.64

2 years ago

4.8.67

2 years ago

4.6.44

2 years ago

4.8.66

2 years ago

4.6.45

2 years ago

4.8.69

2 years ago

4.6.42

2 years ago

4.8.68

2 years ago

4.6.43

2 years ago

4.6.48

2 years ago

4.6.49

2 years ago

4.6.46

2 years ago

4.6.47

2 years ago

3.5.25

2 years ago

3.5.24

2 years ago

5.9.77

2 years ago

3.5.23

2 years ago

5.9.78

2 years ago

3.5.29

2 years ago

3.5.28

2 years ago

3.5.27

2 years ago

3.5.26

2 years ago

5.9.79

2 years ago

4.6.60

2 years ago

2.4.18

2 years ago

2.4.17

2 years ago

2.4.19

2 years ago

2.4.16

2 years ago

5.9.102

2 years ago

5.9.101

2 years ago

5.9.104

2 years ago

5.9.103

2 years ago

5.9.100

2 years ago

4.8.70

2 years ago

4.8.72

2 years ago

4.8.71

2 years ago

4.8.74

2 years ago

4.6.51

2 years ago

4.8.73

2 years ago

4.6.52

2 years ago

4.8.76

2 years ago

4.8.75

2 years ago

4.6.50

2 years ago

4.6.55

2 years ago

4.6.56

2 years ago

4.6.53

2 years ago

4.6.54

2 years ago

4.6.59

2 years ago

4.6.57

2 years ago

4.6.58

2 years ago

2.4.21

2 years ago

2.4.20

2 years ago

5.8.76

2 years ago

5.8.77

2 years ago

3.5.36

2 years ago

3.5.35

2 years ago

3.5.34

2 years ago

3.5.33

2 years ago

3.5.32

2 years ago

3.5.31

2 years ago

3.5.30

2 years ago

3.5.39

2 years ago

3.5.38

2 years ago

3.5.37

2 years ago

2.5.21

2 years ago

2.5.22

2 years ago

2.5.23

2 years ago

5.9.97

2 years ago

5.9.98

2 years ago

5.9.99

2 years ago

5.9.93

2 years ago

5.9.94

2 years ago

5.9.95

2 years ago

3.5.41

2 years ago

5.9.96

2 years ago

3.5.40

2 years ago

5.9.90

2 years ago

4.7.60

2 years ago

5.9.91

2 years ago

5.9.92

2 years ago

4.7.61

2 years ago

4.7.62

2 years ago

4.5.41

2 years ago

2.4.15

2 years ago

2.4.14

2 years ago

2.4.13

2 years ago

2.3.12

2 years ago

2.4.12

2 years ago

2.3.11

2 years ago

2.2.11

2 years ago

2.2.10

2 years ago

2.2.9

2 years ago

2.2.8

2 years ago

2.2.7

2 years ago

2.2.6

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago