5.10.79 • Published 12 months ago

@erboladaiorg/libero-illo-temporibus v5.10.79

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

@erboladaiorg/libero-illo-temporibus 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/libero-illo-temporibus

Usage/Examples

var groupBy = require('@erboladaiorg/libero-illo-temporibus');
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/libero-illo-temporibus');
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/libero-illo-temporibus');
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

authwaapijestbusymergeESnextcharactertimeArray.prototype.containsutil.inspectprototypegesturesstylinges2016regexletloadbalancingelbgetOwnPropertyDescriptordescriptor[[Prototype]]core-jssigintsigtermStyleSheetreact-testing-librarySymbolharmonyhasOwnPropertyroute53react-componentcssstreamPromiserobustebstrimEndautoscalingtypetextarraysflattenfast-deep-copyxterminstallsameValueZerodynamodbconfigUint8ArrayspinnersgdprloggingenumerablebyteLengthECMAScript 3eslint-plugincommand-linedefineshamsomecolorsfunctionalgetinterruptshandlersvariablescollectionassignstringifierArraypicomatchUint8ClampedArraytranspile@@toStringTagintrinsicrecursivehotpromisepyyamlreversedtrimStartES5minimales5offsetestreemixinsCSSStyleDeclarationInt16Arraysharedarraybuffertranspileri18ncopyArray.prototype.flatfnmatchutilwindowcliregexpqueueMicrotaskcommanderproxygetoptuser-streamsvalidateenvironmentstarterlastanimationmetadatawhichmkdirdataViewjapaneseprotobuftrimRightphoneprogressbufferstypeoftoReversedfindLastIndexendersqsES2016optionrandomfunction.lengthsortzodcryptextendfluxECMAScript 2020String.prototype.matchAllidlefetchexecfiledeterministiccoerciblerapidapiutilsCSSforkdeepcloneES2023WeakMapTypedArrayjsonschemacallbindinternal slotexecutecompile lesscloudwatchexecformsefficientes2015parsingsignedclass-validatorcolumnsec2positivehasOwnwaffunctiontestlazyfunctionstacitcensorwriteserializerkeyconcatMapsignalsvalidatoropensslargsstablehashprotogetPrototypeOfvalidcjkcompilerECMAScript 2017prefixhttpsreduceurlArrayBufferBigInt64Arrayarraybufferbabel-coreignoregitignoreagentcurlvisualflatdominspectemitencryptionredactframer6to5sortednodeautoprefixerownES2021immutablepathECMAScript 2016HyBieventDispatchernativenpmignorewritablehookformtypesqsReactiveExtensionsshrinkwrapregular expressionyupstyleasciijson-schema-validationimportexportfpstyped arrayindicatorprettybinariesform-validationfigletjstddstructuredClonereuseArrayBuffer.prototype.slicereadablestreamtestingelmUint32ArrayfastcloneeslintconfigtouchES7make dirsnsshimArray.prototype.findLastIndexObservableskeyssyntaxerrorpostcss-pluginvpconcemodulesdropMaphardlinksscheme-validationclassnamereadablepoint-freehelperArray.prototype.filterexit-codeesString.prototype.trimttyjshintWeakSettelephonefast-deep-cloneECMAScript 6colourflagJSON-Schemacheckfile systemRFC-6455toArrayreact animationSymbol.toStringTagrfc9562warningStreamgraphqlcryptovestmrusuperagentmomentbabelcloudformationdescriptors.envdotenvposebindextraAsyncIteratorutilitiesESWebSocketsworkflowruntimeArray.prototype.flatMapObject.isarktypeiamInt32ArraysubprocessbrowserES6glaciernegative zerocomparepredictableweakseteventEmitterformathas-own3dfindLast-0formattingUint16ArrayboundflatMapmakeobjectrequestnegativematchesdragemrreplayconstserializereact-hooksstylesheetisConcatSpreadableRxjsdiffajvbrowserslistsequenceuninstallreduxjsonmatchchromiumhelpersawsglobalseventses8Object.valuesreversetc39removereact-hook-formconcatpinoObject.keyscall-boundfullwidthiterationloadingfilematchAlliesettingsimportSetArray.prototype.findLastdescriptionvaluestostringtagdeepcopyproptypanionprivate dataoptimizermulti-packagegroupBydeleteRxJSObject.fromEntriescss nestingECMAScript 2021languagevarclassesreactlistenersxhrstatelessasyncdependenciestraversechineselockfilePushspinnernodejscontainstypesafegroupwindowses6symbolsescapepurenested csschromeequalitytransportformserializationuploadreadArrayBuffer#sliceauthenticationbootstrap lessbinoutputshebangglobal objectexpressbannercloudfrontbddreal-timegenericsIteratortrimsharedansirgbnopeguidterminalpasswordtoobjecteveryresolvejoiparsershellassertssesfullcommandeslinttypeerrorspringECMAScript 2018assertioneast-asian-widthmanagerinstallerObject.definePropertydefinePropertychildargvglobalcss variablesetPrototypeOfdependency managerchannellesscssenvironmentscoreECMAScript 2019globalThispackage.jsonjsdomyamllessInt8Arrayvalidationcallboundgetintrinsicparseiteratedayjsbyteperformantcomputed-typeshttpeffect-tsdeep-copyzxartapolloes2017io-tsstringifypolyfillcss lessloggerECMAScriptuuidECMAScript 5Object.assignschemastyled-componentslrupropertyObservableperformancequeuebuffernamedatastructurefastcopyreact posesaferangeerrorlogponyfillfsamazoncolumnUnderscoreflagsSystem.globalpruneworkerinvariantES2022fastifyless cssasterisksreducerpatchliveYAMLlengthprocess256rfc4122package managercallenvcreatecertificateselasticacheprivatediffECMAScript 2022dataviewunicodezerodir
5.10.79

12 months ago

5.10.78

12 months ago

5.10.77

12 months ago

5.10.76

12 months ago

5.10.75

12 months ago

5.10.74

12 months ago

5.10.73

1 year ago

5.10.72

1 year ago

5.10.71

1 year ago

5.9.71

1 year ago

5.9.70

1 year ago

5.9.69

1 year ago

5.9.68

1 year ago

5.9.67

1 year ago

5.8.67

1 year ago

5.8.66

1 year ago

5.8.65

1 year ago

5.8.64

1 year ago

5.8.63

1 year ago

5.8.62

1 year ago

5.8.61

1 year ago

5.8.60

1 year ago

5.8.59

1 year ago

5.8.58

1 year ago

5.8.57

1 year ago

5.8.56

1 year ago

5.8.55

1 year ago

5.8.54

1 year ago

5.7.54

1 year ago

5.7.53

1 year ago

5.7.52

1 year ago

4.7.52

1 year ago

4.7.51

1 year ago

4.7.50

1 year ago

4.7.49

1 year ago

4.7.48

1 year ago

4.7.47

1 year ago

4.7.46

1 year ago

4.7.45

1 year ago

4.7.44

1 year ago

4.7.43

1 year ago

4.7.42

1 year ago

4.7.41

1 year ago

4.6.41

1 year ago

4.6.40

1 year ago

4.6.39

1 year ago

4.6.38

1 year ago

4.6.37

1 year ago

4.5.37

1 year ago

4.4.37

1 year ago

4.4.36

1 year ago

4.4.35

1 year ago

4.4.34

1 year ago

4.4.33

1 year ago

4.4.32

1 year ago

4.4.31

1 year ago

4.4.30

1 year ago

4.4.29

1 year ago

4.4.28

1 year ago

3.4.28

1 year ago

3.4.27

1 year ago

3.4.26

1 year ago

3.4.25

1 year ago

3.4.24

1 year ago

3.4.23

1 year ago

3.3.23

1 year ago

3.3.22

1 year ago

3.3.21

1 year ago

3.2.21

1 year ago

3.2.20

1 year ago

3.2.19

1 year ago

2.2.19

1 year ago

1.2.19

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

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago