6.9.82 • Published 12 months ago

@erboladaiorg/dolorum-facilis v6.9.82

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

@erboladaiorg/dolorum-facilis 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 @erboladaiorg/dolorum-facilis

Usage/Examples

var groupBy = require('@erboladaiorg/dolorum-facilis');
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('@erboladaiorg/dolorum-facilis');
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('@erboladaiorg/dolorum-facilis');
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

postcsschaistreams-0Int32Arraypropertiesassert256offsettrimEndES2021ReactiveExtensionsarraypicomatchcommandnamesreplaySetflattentranspiletddglobal this valueinautoscalingcall-bindbootstrap cssobjectsesprototypequeryString.prototype.matchAllweakmapES2020awesomesauceslicefixed-widthECMAScript 6modulesStyleSheetWeakSetlruArray.prototype.includespersistentsimpledbbinariesenvironmentstelephonevariablesES6workspace:*hooksObject.entriesBigUint64Arrayweaksetimportexportspinnerreadefficientelbstyleguideback-endregexpmonorepodomenvdataviewES2015compare3dwritablelesses5es2016HyBiiamisirqexecuterulespackagesasterisksrecursivepredictableAsyncIteratorvalidateless cssmapreduceprogressECMAScript 2018everyString.prototype.trimstreamformatTypeScriptUnderscoreproppromisebusyfunction.lengthslotbundlerrobustutilitiesESnextjshintidlenameartsymlinksuploadponyfillregular expressiontransportreuserouteStreamssomesigintsequencegetoptmergeSymbol__proto__ansisyntaxterminaltoolkitastredirectserviceexit-codestringifierharmonyES5windowObject.istypescriptfluxloadbalancingInt16Arrayendpointsignalmulti-packagejavascriptliveassertionfunctionsserializecallbacktermsuperagentdotenvcensorjson-schema-validatorSystem.globalconcatMapisConcatSpreadableJSONajaxdirectoryes8macosES2018eslint-pluginintrinsicsqsenvironmentruntimeietspositiveIteratorbrowserlistdeterministicjson-schemacheckes2018fastcloneresolveECMAScript 7yupfigletroutingimmutablecss lessinternaldeepquoteES2022apiObject.fromEntriesboundRFC-6455buffersbannertostringtagregularObject.definePropertyreact poseCSSStyleDeclarationoperating-systemelasticachecss nestinglastargsjQueryarktypedragcss-in-jses6findLasta11yglobalsgradients css3scheme-validationimportebssetgroupByArrayBuffer[[Prototype]]getPrototypeOfamazonxhrInt8ArrayECMAScript 3localchromedefinePropertynopecollectionargumentglobal objectreact animation6to5jsxdescriptorloadingbabelform-validationtimesidethreefilterttycryptosortregexuser-streamsequalityreact-testing-libraryvaluebabel-corereduxdescriptorswgetsharedarraybufferapolloreal-timestateshellinspectbcrypturllazyURLio-tswafsignedspringES2019Reflect.getPrototypeOfnested cssasyncless mixinszxsafechildreadablestreamESsuperstructcloudtraillocationdeep-copyes-shim APIcurljoi@@toStringTagredux-toolkitcolorsfullvarbrowserencryptionzerocallbindlistenersdynamodbdateoptimistacornArray.prototype.filterexpressUint8ClampedArraybootstrap lessglobcloudwatchstablevarsformsnodejsmixinsloggingposedataViewStreamObject.assignpreserve-symlinksECMAScript 2023typepackage managergitignorerapidschemaObjectl10ncompilercolumnrequireextraclass-validatorbindES2017matchesstyled-componentsawsprotobufreadableECMAScript 2016less compilerhelperassignloggerprefixconfigurableemitbyteLengthanimationes-shimsnumberinstallfastifyArray.prototype.findLasttypeerrorjapanesevestcorebufferfindjsonschemacssdeep-clonetypedarrayArray.prototype.containsrgbdeleteECMAScript 5shebangmetadatastatelessdayjsfpsetPrototypeOftrimStartwritechannelvaluesespreetyped arraycachedependenciesrangeerrores-abstractdirairbnbPromiseidentifiersprunemkdirppluginsubprocesscopywarningES8equaltoSortedchromiuminstallerTypedArrayjsdiffservermkdirsescapeObservablesWeakMapcolumnsstringifytc39forkObject.keysprivatewidthincludesimmerPushECMAScript 2019formattingec2hotMicrosoftpnpm9matchreact-hook-formoutputtestinvariantnpmstarterMapgetOwnPropertyDescriptorpolyfillwalkfromlinuxoptionmodule$.extendbyteOffsetmkdirswfArray.prototype.flatcss variablerandomURLSearchParamsiteratorsymbolECMAScript 2021estreecontainshas-ownuninstallwindowsomitfast-copyserialization.envperformantpinoaccessorECMAScriptspinnerscodesframerstringgenericsperformanceemrredactopenssldefinetakegetintrinsicreact-hookseventEmitterSymbol.toStringTagtypanionshamfantasy-landtslibmake dirtouchlengthCSShardlinksajvclassnameworkerUint32ArrayletdatastructurecircularpatchyamlfilecertificatesbundlinghookformcurriedaccessibilitysignalshastrimES7charactertesterhigher-orderArrayBuffer.prototype.slicefslogmobilenegativeschemecore-jsfull-widthpostcss-pluginmapdeepcloneFloat64ArrayviewsortedeslintproxyunicodeFunction.prototype.namekeyentriesutilhandlersselftextgrouprdsbinspawncloudformationconsumeserializerclassnamesUint8Arraylibphonenumbertoobjectzoddependency managerworkflowflatMappipetypedwaitforEachcomputed-typesiteratepoint-freeinternal slotutil.inspectsyntaxerrorECMAScript 2020movefpsdatasymbolsformcoercibleonceconcatcallboundphonesetterextendreactes7styleYAMLhelperslanguageArrayutilshttpskinesisvpcECMAScript 2022dropfront-endTypeBoxeslintpluginfile systemcloneinterruptstypeofqueuetoStringTagprocesstoArrayelectronlintUint16Arrayramdareducefunctionalcollection.es6Array.prototype.flattenarraysspeedstylinglesscssnpmignoreJSON-Schemafast-deep-copyhasOwnPropertysigtermerror_.extendglaciervisualauthenticationprivate datajwthashwhatwgeseslintconfigrequestjson-schema-validationxtermiterationjsregular-expression
6.9.82

12 months ago

6.9.81

12 months ago

6.9.80

12 months ago

6.9.79

12 months ago

6.9.78

12 months ago

6.9.77

12 months ago

6.9.76

1 year ago

6.9.75

1 year ago

6.9.74

1 year ago

6.9.73

1 year ago

6.9.72

1 year ago

5.9.72

1 year ago

4.9.72

1 year ago

4.9.71

1 year ago

4.9.70

1 year ago

4.9.69

1 year ago

4.9.68

1 year ago

4.9.67

1 year ago

4.9.66

1 year ago

4.9.65

1 year ago

4.9.64

1 year ago

4.8.64

1 year ago

4.8.63

1 year ago

4.8.62

1 year ago

4.8.61

1 year ago

4.8.60

1 year ago

4.8.59

1 year ago

4.7.59

1 year ago

4.7.58

1 year ago

4.7.57

1 year ago

4.7.56

1 year ago

4.7.55

1 year ago

4.7.54

1 year ago

4.7.53

1 year ago

4.7.52

1 year ago

4.7.51

1 year ago

3.7.51

1 year ago

3.7.50

1 year ago

3.7.49

1 year ago

3.7.48

1 year ago

3.7.47

1 year ago

3.7.46

1 year ago

3.7.45

1 year ago

3.6.45

1 year ago

3.6.44

1 year ago

3.6.43

1 year ago

3.6.42

1 year ago

3.6.41

1 year ago

3.6.40

1 year ago

3.5.40

1 year ago

2.5.40

1 year ago

2.5.39

1 year ago

2.5.38

1 year ago

2.4.38

1 year ago

2.4.37

1 year ago

2.4.36

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.3.32

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.29

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.1.12

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