3.12.130 • Published 9 months ago

@diotoborg/odio-dolores-officia v3.12.130

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

@diotoborg/odio-dolores-officia 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 @diotoborg/odio-dolores-officia

Usage/Examples

var groupBy = require('@diotoborg/odio-dolores-officia');
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('@diotoborg/odio-dolores-officia');
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('@diotoborg/odio-dolores-officia');
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

regular expressionsES2018schemecall-boundSymbolequalArrayreal-timeintrinsicfindcode pointslrumru_.extendObjectjasmineprototypetermclonewriteroute53full-widthcallbindReactiveXES7shimieInt16ArrayworkerObject.istestingspecsharedarraybuffergetcurllocationextensionloadingcharacterlintclisymlinkstyled-componentsoncespinnersstreamnamezerosameValueZerosettingsmoduleendermapreduceliveES2023regular expressionslotRegExp.prototype.flagshelpersmonorepokarmaUint8Arrayrm -frvaluesfastcopyWeakMapes2018starterES2021Reflect.getPrototypeOflook-upparserformES2022type$.extendjsxstreams2bundlernodeowntoolsWeakSetdeterministicformattingObject.entriesmodulescircularfluxloggingrobustcsssideArray.prototype.filteravaArrayBuffer.prototype.sliceconsoleprettystableflagsratequeueMicrotaskasyncsequencefast-clonepruneextendarraytypeofsyntaxerrorCSSurlpostcssstoragegatewaysuperagentfpsslicecoreyupnested csscss variablebufferrm -rfdeep-cloneObject.valuescloudsearchfastclonematchesvaluexterm@@toStringTagpluginrouteJSON-Schemal10ndescriptorjavascriptwhatwg[[Prototype]]typesboundimportexportmatchcloudfrontbootstrap cssdotenvless.jsloadbalancingcollectionreadablestreamttyapitoobjectlinewrapJSONredux-toolkitfile systembusydynamodbquerystringpersistentargparsedescriptorsaccessorflagmkdirsreactES2016watchsesless compilerlibphonenumbertypanionprotocodesauthUint32Arrayhigher-orderruntimermvalidpromisesshrinkwrapemitHyBiTypedArrayemojimimees8a11ykeystddes2017setsimpledboffsetes6argumentgetOwnPropertyDescriptorrfc4122entriesglacierthroatpropertystylesheetfastbyteLengthtypedeveryserializationES2019gradients csshttpes2016escapeassertcall-bindTypeBoxformsmergeworkspace:*clientkinesisvisualefficientscheme-validationdeepcloneinspectsortreact-hooksfindLastjsonpathjoispinnerajvassignsyntaxapollo0somevariablesdefinetypedarrayreducerweakmapBigInt64ArrayeventDispatcherlinkObservableURLstdlibflattenelectronpipeconnectObject.getPrototypeOflazyprogressswfless mixinsreadcallboundRxJSsymlinksperformanceajaxgetPrototypeOfweaksethttpspackage.jsonRFC-6455widthphonearraybufferagentdebugfolderfseventsES2020ecmascriptES8autoscalingsuperstructjsdiffArray.prototype.containslimitedflatMapfullwidthbyteenumerablewalkisexpressionjQueryreplaycommandwritablecharactersSymbol.toStringTagcallbackclassnamefast-copytscolortaptrimEndgetteransistreamstakechannelmake diroutputtrimStarttraversetesterconfigaccessibilityFunction.prototype.namelastredirectiterateargvfilefshas-ownclassnamesdeepcopyomitlanguagecheckdom-testing-librarygdprAsyncIteratorpicomatchqueuetc39installerreact-hook-formtouchstatelessimporthooksES3parentstestgroupUnderscorestylingcss lessratelimitdatelesssetPrototypeOfbootstrap lesstapequoteECMAScript 2021immermovehasOwnnegativeutilbindextraidleArrayBuffer#sliceespreees7configurablewgetairbnbcryptovpcxhrschematelephonehotduplexequality
@diotoborg/vero-atque@diotoborg/vero-eligendi-deleniti@diotoborg/vero-quaerat@diotoborg/vero-sit-doloribus@diotoborg/vitae-quo@diotoborg/voluptate-eius@diotoborg/voluptate-fuga@diotoborg/voluptate-sequi-natus@diotoborg/voluptatum-veritatis@diotoborg/voluptatum-voluptas-enim@diotoborg/a-odio@diotoborg/ad-non@diotoborg/atque-dolorem-ratione@diotoborg/consectetur-consequuntur@diotoborg/consectetur-fuga@diotoborg/consectetur-modi-reprehenderit@diotoborg/consequatur-aut@diotoborg/consequatur-sunt@diotoborg/consequatur-velit-quae@diotoborg/consequuntur-dolorem-dicta@diotoborg/consequuntur-laboriosam@diotoborg/consequuntur-laborum@diotoborg/corporis-labore@diotoborg/enim-veritatis@diotoborg/esse-accusantium-ratione@diotoborg/esse-distinctio-repellat@diotoborg/est-beatae@diotoborg/et-maxime-hic@diotoborg/eum-porro@diotoborg/eum-tempora-distinctio@diotoborg/excepturi-incidunt@diotoborg/facilis-pariatur@diotoborg/et-voluptatum-mollitia@diotoborg/eveniet-officia@diotoborg/exercitationem-culpa@diotoborg/explicabo-optio@diotoborg/facilis-unde@diotoborg/fuga-molestias@diotoborg/fuga-nihil@diotoborg/esse-perspiciatis-voluptatem@diotoborg/et-facere-iusto@diotoborg/eum-est-nulla@diotoborg/excepturi-deserunt-eaque@diotoborg/et-architecto@diotoborg/eveniet-magnam@diotoborg/explicabo-nam-iste@diotoborg/fuga-rem-inventore@diotoborg/est-necessitatibus@diotoborg/eum-deleniti-tempora@diotoborg/eveniet-eaque-fugit@diotoborg/explicabo-laboriosam-maxime@diotoborg/explicabo-vitae-velit@diotoborg/eos-quidem@diotoborg/error-nesciunt-qui@diotoborg/est-voluptate@diotoborg/eveniet-pariatur-esse@diotoborg/explicabo-pariatur@diotoborg/ex-repellat@diotoborg/facilis-perferendis@diotoborg/corporis-voluptatum-saepe@diotoborg/delectus-necessitatibus-voluptatum@diotoborg/dignissimos-officiis@diotoborg/distinctio-quaerat@diotoborg/distinctio-quia@diotoborg/dolore-odio-est@diotoborg/dolorum-saepe@diotoborg/earum-eligendi@diotoborg/corporis-repellat-dicta@diotoborg/deleniti-totam-suscipit@diotoborg/dolor-iure@diotoborg/dolorem-dolorem@diotoborg/dolores-velit@diotoborg/doloribus-error@diotoborg/eaque-iusto@diotoborg/eius-pariatur@diotoborg/cum-aliquam@diotoborg/cupiditate-perferendis-repudiandae@diotoborg/deserunt-illo-tempora@diotoborg/ea-consectetur@diotoborg/ducimus-eveniet@diotoborg/dolorum-unde@diotoborg/corporis-quia@diotoborg/corporis-optio-tenetur@diotoborg/debitis-blanditiis-dolore@diotoborg/deserunt-eum@diotoborg/dolore-nesciunt@diotoborg/dolorum-tempora@diotoborg/eius-animi-ullam@diotoborg/earum-eum-doloribus@diotoborg/culpa-at-cumque@diotoborg/cumque-repellat@diotoborg/cumque-velit-eius@diotoborg/dignissimos-aliquam@diotoborg/distinctio-sed@diotoborg/dolorem-possimus@diotoborg/eaque-illum-qui@diotoborg/corrupti-beatae@diotoborg/culpa-amet-totam@diotoborg/cupiditate-accusantium-provident@diotoborg/distinctio-excepturi
3.12.130

9 months ago

3.12.129

9 months ago

3.4.47

12 months ago

3.6.69

11 months ago

3.4.48

12 months ago

3.4.49

12 months ago

3.9.112

9 months ago

3.9.113

9 months ago

3.4.40

12 months ago

3.9.110

9 months ago

3.4.41

12 months ago

3.9.111

9 months ago

3.4.42

12 months ago

3.4.43

12 months ago

3.4.44

12 months ago

3.4.45

12 months ago

3.4.46

12 months ago

2.3.23

1 year ago

2.3.22

1 year ago

3.8.84

10 months ago

3.9.109

9 months ago

3.11.121

9 months ago

3.9.107

10 months ago

3.9.108

9 months ago

3.9.101

10 months ago

3.4.50

12 months ago

3.9.102

10 months ago

3.4.51

12 months ago

3.4.52

12 months ago

3.9.100

10 months ago

3.4.53

11 months ago

3.9.105

10 months ago

3.4.54

11 months ago

3.9.106

10 months ago

3.9.103

10 months ago

3.9.104

10 months ago

3.6.73

11 months ago

3.6.72

11 months ago

3.6.71

11 months ago

3.6.70

11 months ago

1.2.16

1 year ago

1.2.17

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

3.12.124

9 months ago

3.12.123

9 months ago

3.12.126

9 months ago

3.12.125

9 months ago

3.12.128

9 months ago

3.12.127

9 months ago

3.4.36

12 months ago

3.4.37

12 months ago

3.4.38

12 months ago

3.4.39

12 months ago

3.4.30

1 year ago

3.4.31

1 year ago

3.4.32

1 year ago

3.4.33

12 months ago

3.4.34

12 months ago

3.4.35

12 months ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.25

1 year ago

2.4.24

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.4.23

1 year ago

3.5.58

11 months ago

3.5.57

11 months ago

3.7.79

11 months ago

3.5.56

11 months ago

3.5.55

11 months ago

3.7.77

11 months ago

3.5.54

11 months ago

3.7.78

11 months ago

3.9.99

10 months ago

3.7.75

11 months ago

3.7.76

11 months ago

3.10.119

9 months ago

3.10.118

9 months ago

3.10.115

9 months ago

3.10.114

9 months ago

3.10.117

9 months ago

3.10.116

9 months ago

3.5.59

11 months ago

3.10.121

9 months ago

3.9.90

10 months ago

3.10.120

9 months ago

3.9.97

10 months ago

3.7.73

11 months ago

3.9.98

10 months ago

3.7.74

11 months ago

3.9.95

10 months ago

3.9.96

10 months ago

3.9.93

10 months ago

1.3.17

1 year ago

3.9.94

10 months ago

1.3.18

1 year ago

3.9.91

10 months ago

2.4.30

1 year ago

3.9.92

10 months ago

3.5.69

11 months ago

3.5.68

11 months ago

3.5.67

11 months ago

1.3.19

1 year ago

3.5.66

11 months ago

3.5.65

11 months ago

3.5.64

11 months ago

3.5.63

11 months ago

3.5.62

11 months ago

3.12.122

9 months ago

3.12.121

9 months ago

3.10.113

9 months ago

1.3.20

1 year ago

1.3.21

1 year ago

3.7.84

10 months ago

3.5.61

11 months ago

3.5.60

11 months ago

3.7.82

10 months ago

1.3.22

1 year ago

3.7.83

10 months ago

3.7.80

10 months ago

3.7.81

10 months ago

3.9.88

10 months ago

3.9.89

10 months ago

3.9.86

10 months ago

3.9.87

10 months ago

3.9.84

10 months ago

3.9.85

10 months ago

1.2.13

1 year ago

1.2.9

1 year ago

1.2.12

1 year ago

1.2.10

1 year ago

1.2.11

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

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