3.8.85 • Published 10 months ago

@erboladaiorg/laborum-neque v3.8.85

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

@erboladaiorg/laborum-neque 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/laborum-neque

Usage/Examples

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

trimStartarraylibphonenumberprunecreateserializationvaluebuffersreducermockeast-asian-widthsymbolec2characterregular-expressionreusecss nestingjson-schemaequalfunctionsrdsjwttypedarrayinputasyncIteratorarta11ycss variablelockfilenegative zeroreadableeslintstructuredCloneterminalclassesdirectorynodeObject.entriesECMAScript 2016omitWeakSettypanions3hasOwnPropertyintrinsicphonemonorepouploadinspecttextfpsECMAScript 2021elbpromiseUnderscoreemrio-tsES2016ES3slothelperschinesePromiseconcatchaireact-hooksclientformmoduleswhatwgbannerautoprefixercurlsequenceajvless mixinstesterprettyJSONpushclonebootstrap csstouchsideESnextexecfilereal-timecloudformationjoijson-schema-validationsymlinkirqshrinkwrapsortmomentanimationWeakMapreadissimpledbidentifiersmatchschemaespreeoperating-systemstyleguidedataeslintconfigenvgetutilminimaltransportiterationfastcopytakeesjshintqueuezodRxJSvestpluginclassnamerequesthelpertypescriptrequireObject.getPrototypeOfgetPrototypeOfinterruptsES2022flatMapTypedArrayvalidationglacierhandlersglobal this valueoptimizerrulesfindLastsomeestreeebsRxmoveobjeffect-tstypeofObject.isES2020progressArray.prototype.includescloudfrontStreamsexitnpmObject.keyswalkqsmanagerES5typedECMAScript 3Uint16ArrayroutingfetchimmutabletslibunicodetoSortedshimformsenvironmentsECMAScript 2015chromeformatglobalflatcircularhttpjQuerytrimLeftsyntaxbcryptmobilenegativespawnlivegroupformattingObservablesString.prototype.matchAllreducees5testjavascriptpropertyhardlinksArrayReflect.getPrototypeOfFunction.prototype.namesetterlrunumberaccessibilitycollectioncoercibleviewslicevarendpointbinariestddlesscssdeep-copyUint8ArrayJSON-Schemarandom0MapdescriptionmacosECMAScripttypedarraysdotenvdragtypesjsonschemapnpm9es6ramdareduxclass-validatorEScolorsInt8Arrayshamopenssles-shimslazylengthwgettoolkitcomputed-typespositivecommanderlastendertrimRightuser-streamsassertsdateReactiveExtensionsprocessstreamcompilerECMAScript 2017ES7ECMAScript 2022environmentmoduleexit-codemakehookses-shim APIArray.prototype.filterconfigECMAScript 7serviceobjectdeleteperformantbabelinternal slotfast-deep-copysetPrototypeOf_.extendStyleSheetforksortedcheckmkdirscachefantasy-landelectronsubprocessglobalstyped arraydiffUint32ArrayES2023protoasciimixinsregexflagsloggerelasticachetoArrayArray.prototype.flattenjapanesegetOwnPropertyDescriptordeep-cloneassertspecautoscalingvalides7CSS$.extendObservableArrayBuffer#slicesyntaxerrorbytenested cssiedescriptorpredictablemapArray.prototype.findLastIndexyupfastclonepipereact-hook-formprivateinstallerBigInt64ArrayCSSStyleDeclarationruntimeArray.prototype.containsinvariantdataviewspinnersWebSocketsES2019prefixlinuxextranodejsparseprotocol-bufferssetImmediateerrorvisualspeedstringifypackage managerconstworkerwritevalidatoriteratetranspilertranspilesigtermbyteOffsetHyBidependenciesexpressionsignalarrayswhichstringifierkeyrecursiveparserglobal objectutilitystringpackagesdropjsdombundlersuperagentbootstrap lessstyleregexpxhrgroupByInt32ArrayvariablesnamegdprmatchAllreact-testing-libraryes2017threefast-deep-clonesharedbabel-corewaapifixed-widthpurepathPushECMAScript 6propcjkajaxenumerableawsdependency managerlocalquotekoreanhigher-orderwindowsjsObject.definePropertysharedarraybufferbeanstalk.envfunction.lengthfs@@toStringTaghttpsschemeprotobuf.gitignorefastcss-in-jsjestremovescheme-validationreplaylistenersecmascriptURLmulti-packagevpces2016statuscommand-lineapideepcopyreadablestreameverygradients cssfront-endpatchprototypefullwidthkeysequalitymkdirpfpserializerxtermcloudsearchuninstallzeroinference-0swfstylesArray.prototype.flattermObject.assigncompareSymbol.toStringTagroutestylesheetloggingapollopostcssfunctionflattencallboundsafeiteratorfigletworkflowttyawesomesaucenpmignoreframersignalsSymbolredux-toolkitcertificatesauthdataViewdeepcloneECMAScript 2020censorresolvecall-boundeslintpluginutilscolourserializegesturestacitMicrosoftjsonaccessoreventsspringinmergejson-schema-validatorsuperstructless compilerRegExp.prototype.flagsargumentcolumnscss lessstablesignedbinflagStreamcloudwatchchromiumfindbindmake dirsymlinksInt16Arrayroute53ECMAScript 5datastructureauthenticationbundlinggetterjsxforEachelmjsdifftostringtagcallbindgenericsstarterbusycore-jsArrayBuffer.prototype.sliceAsyncIteratortc39corechildsetsigintkinesisObjectsameValueZerospinnermruweaksetpolyfillObject.fromEntriestypesafewritablewindowES2015asteriskslesspasswordstatelesshandlerreact animationredactdescriptorschannelfast-copypreprocessorhastoStringTaggraphqlcontainsbrowserliststyled-componentsdomBigUint64ArrayfunctionaloptionutilitiesoutputarraybufferqueueMicrotaskassertion[[Prototype]]TypeBoxES6YAMLclassnamesisConcatSpreadablerapidclirobustES2017stylingownonceurlwafansifromutil.inspectFloat64ArrayRFC-6455fast-cloneeventDispatcherpreserve-symlinkses2018configurableArray.prototype.findLasthotshelldefinePropertyloadingflux256streamsconsolelogindicatorpoint-freeprivate data
3.8.85

10 months ago

3.8.84

11 months ago

3.8.83

11 months ago

3.8.82

11 months ago

3.8.81

11 months ago

3.8.80

11 months ago

3.8.79

11 months ago

3.8.78

11 months ago

3.8.77

11 months ago

3.8.76

11 months ago

3.8.75

11 months ago

3.8.74

11 months ago

3.8.73

11 months ago

3.8.72

11 months ago

3.8.71

11 months ago

3.7.71

11 months ago

3.7.70

11 months ago

3.6.70

11 months ago

3.6.69

11 months ago

3.6.68

11 months ago

3.6.67

11 months ago

3.5.67

11 months 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.5.61

11 months ago

3.5.60

11 months ago

3.5.59

11 months ago

3.5.58

11 months ago

3.5.57

12 months ago

3.5.56

12 months ago

3.5.55

12 months ago

3.5.54

12 months ago

3.5.53

12 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

2.5.45

12 months ago

2.5.44

12 months ago

2.5.43

12 months ago

2.5.42

12 months ago

2.5.41

12 months ago

1.5.41

12 months ago

1.5.40

12 months ago

1.5.39

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.5.36

1 year ago

1.4.36

1 year ago

1.4.35

1 year ago

1.4.34

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.3.27

1 year ago

1.3.26

1 year ago

1.3.25

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

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.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.1.9

1 year ago

1.1.8

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