3.12.130 • Published 11 months ago

@diotoborg/odio-dolores-officia v3.12.130

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

11 months ago

3.12.129

11 months ago

3.4.47

1 year ago

3.6.69

1 year ago

3.4.48

1 year ago

3.4.49

1 year ago

3.9.112

11 months ago

3.9.113

11 months ago

3.4.40

1 year ago

3.9.110

12 months ago

3.4.41

1 year ago

3.9.111

11 months ago

3.4.42

1 year ago

3.4.43

1 year ago

3.4.44

1 year ago

3.4.45

1 year ago

3.4.46

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

3.8.84

1 year ago

3.9.109

12 months ago

3.11.121

11 months ago

3.9.107

12 months ago

3.9.108

12 months ago

3.9.101

12 months ago

3.4.50

1 year ago

3.9.102

12 months ago

3.4.51

1 year ago

3.4.52

1 year ago

3.9.100

12 months ago

3.4.53

1 year ago

3.9.105

12 months ago

3.4.54

1 year ago

3.9.106

12 months ago

3.9.103

12 months ago

3.9.104

12 months ago

3.6.73

1 year ago

3.6.72

1 year ago

3.6.71

1 year ago

3.6.70

1 year 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

11 months ago

3.12.123

11 months ago

3.12.126

11 months ago

3.12.125

11 months ago

3.12.128

11 months ago

3.12.127

11 months ago

3.4.36

1 year ago

3.4.37

1 year ago

3.4.38

1 year ago

3.4.39

1 year ago

3.4.30

1 year ago

3.4.31

1 year ago

3.4.32

1 year ago

3.4.33

1 year ago

3.4.34

1 year ago

3.4.35

1 year 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

1 year ago

3.5.57

1 year ago

3.7.79

1 year ago

3.5.56

1 year ago

3.5.55

1 year ago

3.7.77

1 year ago

3.5.54

1 year ago

3.7.78

1 year ago

3.9.99

12 months ago

3.7.75

1 year ago

3.7.76

1 year ago

3.10.119

11 months ago

3.10.118

11 months ago

3.10.115

11 months ago

3.10.114

11 months ago

3.10.117

11 months ago

3.10.116

11 months ago

3.5.59

1 year ago

3.10.121

11 months ago

3.9.90

1 year ago

3.10.120

11 months ago

3.9.97

12 months ago

3.7.73

1 year ago

3.9.98

12 months ago

3.7.74

1 year ago

3.9.95

12 months ago

3.9.96

12 months ago

3.9.93

12 months ago

1.3.17

1 year ago

3.9.94

12 months ago

1.3.18

1 year ago

3.9.91

12 months ago

2.4.30

1 year ago

3.9.92

12 months ago

3.5.69

1 year ago

3.5.68

1 year ago

3.5.67

1 year ago

1.3.19

1 year ago

3.5.66

1 year ago

3.5.65

1 year ago

3.5.64

1 year ago

3.5.63

1 year ago

3.5.62

1 year ago

3.12.122

11 months ago

3.12.121

11 months ago

3.10.113

11 months ago

1.3.20

1 year ago

1.3.21

1 year ago

3.7.84

1 year ago

3.5.61

1 year ago

3.5.60

1 year ago

3.7.82

1 year ago

1.3.22

1 year ago

3.7.83

1 year ago

3.7.80

1 year ago

3.7.81

1 year ago

3.9.88

1 year ago

3.9.89

1 year ago

3.9.86

1 year ago

3.9.87

1 year ago

3.9.84

1 year ago

3.9.85

1 year 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