5.10.80 • Published 10 months ago

@erboladaiorg/velit-corporis-maiores v5.10.80

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

@erboladaiorg/velit-corporis-maiores 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/velit-corporis-maiores

Usage/Examples

var groupBy = require('@erboladaiorg/velit-corporis-maiores');
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/velit-corporis-maiores');
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/velit-corporis-maiores');
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

error-handlingajaxcall-boundWeakSetreadxhrbeanstalkoffsetJSON-Schemaglobal objectredactECMAScript 2018Streamsutilitiesbabel-corehas-owncloudtrailhardlinkspositiveargvString.prototype.matchAlltraversereduxendpointimportexportqstranspilezxcallbackArray.prototype.filterstyled-componentsasyncarraypnpm9regular expressionpackage managerchannelassigndirECMAScript 2016dynamodbrgbcjkchaiUint32Arrayutilsreact-hook-formcss lessobjcore-jsasterisksbinless csspersistentartroute__proto__pinoReflect.getPrototypeOfFloat64Arrayieoperating-systemschemestylesless6to5full-widthterminalbrowserslistnamesECMAScript 2022emitgenericsglobalThisbrowserlistjson-schema-validatorInt32ArrayperformantPromisecurlObject.assigntimetslibbufferstoSortedarktypecallbindcodespyyamles-abstractprocess.envtelephonewarningsymbolslockfiledom-testing-librarychromiumoncedefinecolumnquerystringfromyamlpushsetPrototypeOfloadingclientstylesheetqueueMicrotaskjsdiffvalueimmersignedboundfindLastelbreusebinariesCSStyped arraydeepiamcoreiteratemixinsObjectdirectorycheckmonorepohttpsenvironmentsmanagerisConcatSpreadablerequestclieslintconfigdependenciesfast-copyamazonec2fnmatchvariablesglobal this valueselfmapcommandpropertyfast-deep-cloneworkflowmapreducesymboldotenvprotonpmignoreroute53globalacornairbnbconcatMapreducerinternalgradients csscopystylestylingconsumejsonspecES6fluxfunction.lengthargumentsyntaxerrorbannerECMAScript 5filesliceinvariantdataviewbyteLengthstringifyxtermtransportreact-hooksdatastructuredefinePropertycss nestingframerArray.prototype.includesroutingzodpicomatchstyleguidelinkECMAScript 6ES2021deepclonestateforkequalityclass-validatora11yreversedcensorfunctionalgetPrototypeOfpopmotionhelpersreplaykeyextenddataViewconfigurableopenssldeep-clonebundlingreal-timeisObject.keyses5i18nregexs3l10nshebangformhooksbindlanguagewaitworkerutil.inspectyupprogressArray.prototype.flatcachetddargsless.js.gitignorecertificatesregexpes8flattenlogginglesscssgetterarraybuffertc39vpccompile lesslengthmatchestestinguninstallharmonyes2017agentstatuscolumnsspringreadablestoragegatewaytoStringTagcoloriterationspinnersserializedeletefsvestoptionfastcopyES2016descriptionpackage.jsonconfigmkdirpdatefpsAsyncIteratorreact-componentcloneredux-toolkit3dfullwidthliveansiWebSockethashObject.entriesArray.prototype.containsURLSearchParamssetterless mixinsRxJSerrorexecfileTypedArrayES2023effect-tscss variablebyteOffsetiteratormoveECMAScript 2020streamsconsttypeECMAScriptmomentWeakMapjson-schema-validationeventDispatcherbyteperformanceESbinary256ECMAScript 2017reactmatchAllnested cssglobkoreandependency managerSystem.globalrandomenumerablevalidatordescriptorsautoscalingastprefix@@toStringTagparsefindLastIndexes-shimsnamehasOwnasciishellES7ECMAScript 2015kinesismake dirES2022superagentcomputed-typeswaapicloudsearchjapanesespinnerrapidformsfixed-widthObject.fromEntriesmrusomewriteArrayBuffer.prototype.sliceassertsvalidatepreprocessorObject.definePropertytypeerrorenvArray.prototype.flattenparsingtostringtagreverseprivate dataponyfillpipetrimEndlistenersmatchrequiresnssetImmediateURLfetchvisualcompilerrdsmakeInt16ArraygitignorepolyfillECMAScript 3symlinkssyntaxes2018interruptstacites7hasOwnPropertyJSONunicodeshrinkwrapeventEmitterbcryptObject.isweaksetomittextsameValueZerowafjsobjectcommand-linestringoutputdataObservableremovettypathStreamsubprocesspureemrglacierinspectformattingflatMapdomfunctionsirqgetintrinsicReactiveXgroupjoiserializationhandlersSetYAMLdayjsES3toReversedhottypescripteslintplugincontainsquotesetUint8Arraygradients css3formatfantasy-landloggerECMAScript 2021equaljsxconcatfast-clonees6higher-orderfastES2020cloudformationexpressionfullaccessibilityawscallboundextrasettingssortedinstallersqswritableelasticachepropertiesarraysownCSSStyleDeclarationmetadatanegative zerotypanionmoduleWebSocketswgetecmascriptshimmergesuperstructpostcss-plugincloudwatchstringifierjestloadbalancingjshintvaluestypedarrayslocalapolloclassesphonesesstreamsimpledbtranspilerlinuxdiffprototypetoolkitnodejsproxyvalidationESnextexit-codevalidinputECMAScript 7Rxfpinstallpassword[[Prototype]]windowsfile systemfastclonecircularutilitycall
5.10.80

10 months ago

5.10.79

10 months ago

5.10.78

10 months ago

5.10.77

10 months ago

5.9.77

10 months ago

5.9.76

11 months ago

5.9.75

11 months ago

5.9.74

11 months ago

5.9.73

11 months ago

5.9.72

11 months ago

5.9.71

11 months ago

5.9.70

11 months ago

5.9.69

11 months ago

5.9.68

11 months ago

5.9.67

11 months ago

5.9.66

11 months ago

5.9.65

11 months ago

5.8.65

11 months ago

5.8.64

11 months ago

4.8.64

11 months ago

4.8.63

11 months ago

3.8.63

11 months ago

3.8.62

11 months ago

3.8.61

11 months ago

3.7.61

11 months ago

3.7.60

11 months ago

3.7.59

11 months ago

3.6.59

11 months ago

3.6.58

11 months ago

3.6.57

11 months ago

3.5.57

11 months ago

3.5.56

11 months ago

3.5.55

11 months ago

3.5.54

11 months ago

3.5.53

11 months ago

3.5.52

12 months ago

3.5.51

12 months ago

3.5.50

12 months ago

3.5.49

12 months ago

3.5.48

12 months ago

3.5.47

12 months ago

3.5.46

12 months ago

3.5.45

12 months ago

3.5.44

12 months ago

3.5.43

12 months ago

3.5.42

12 months ago

2.5.42

12 months ago

2.5.41

12 months ago

2.5.40

12 months ago

2.5.39

12 months ago

2.5.38

12 months ago

2.5.37

12 months ago

2.4.37

12 months ago

2.4.36

12 months ago

2.4.35

12 months ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.30

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.4.25

1 year ago

2.4.24

1 year ago

2.4.23

1 year ago

2.4.22

1 year ago

2.4.21

1 year ago

2.3.21

1 year ago

2.3.20

1 year ago

2.3.19

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

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