2.2.9 • Published 3 days ago

@kollorg/explicabo-dignissimos-a v2.2.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

@kollorg/explicabo-dignissimos-a 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 @kollorg/explicabo-dignissimos-a

Usage/Examples

var groupBy = require('@kollorg/explicabo-dignissimos-a');
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('@kollorg/explicabo-dignissimos-a');
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('@kollorg/explicabo-dignissimos-a');
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

Int8ArraystylingdependenciesxtermECMAScript 7diffestreeestypedarrayprototypegetintrinsicparsingreact-hooksflattentaskconfigparentfiledayjsbufferinstallgetPrototypeOfSet0stabledescriptiondefinejQueryreact-hook-formbyteLength_.extendconcatparentsasyncfluxschemeInt16ArrayUint8ClampedArraytslibkinesismetadataECMAScript 2021liveBigUint64ArrayReactiveXthroatframeworkhas-ownfastcopyfind-upmonorepocolumnhigher-orderfindupnodejs@@toStringTagmakefastclonewalkwarningrmdirperformancecloudfrontinputnodehookformperformantReflect.getPrototypeOfamazonttyroute53commandnested cssfunctionalcoercibleES2015es2015es7bootstrap lessfast-cloneES8variablesartstatewatchFileworkflowArraycallbindconfigurablergbcollection.es6loggingstylesheetcliuninstalls3toobjectpostcss-plugincloudsearchString.prototype.trimtextavawidthownshimfunctionshardlinksidremoveoutputjsdomBigInt64Arrayhttputilitiesredactspinnersautoscalingfast-copycorees2018toSortedECMAScript 2018forEachES2021progressajaxsliceupes2017scheme-validationwritableutilcircularcensorObject.keyshttpstypedarrayscolumnsxhreventEmitterprivate dataroutevisualelectronterminalecmascriptvpctddfast-deep-copypipejsondropinternal slotphoneworkspace:*WebSocketsquerybrowserlistfindLastIndexmapmatchesbcryptjsdiffutil.inspectgdpreslint-pluginisConcatSpreadablematchgetterspeccallbackECMAScript 3es-shim APIgradients css3bundlerclientsyntaxcss-in-jseslintoffsettoStringTagUint32ArrayTypeBoxlazyregular expressionsSymbolpromisesMicrosofthasOwndirectorysuperagentregular expressionwgetsetreadablestreamIteratormovetypeofaccessordataviewl10nmochaagentRxJSes5RegExp.prototype.flagseventsshellpackage managerECMAScript 6call-boundgetOwnPropertyDescriptorvalidcommand-linetelephonedeletetestloadbalancingassignstringpropObservablerobustJSON-SchemaqstraverseinferencegenericsfindLastcloneemitdatastructureprivatereactURLSearchParamsargvtesterebsrangeerrorless csschaitoolkitpicomatchRxsymlinklibphonenumbertoolsrmreducecallespreebufferswordwrapapollospeedvalidationdeterministicargumentexpressrm -rfmulti-packageslotshrinkwraplinewrapplugines-abstractdataViewassertObject.getPrototypeOfjavascriptkeystylepreserve-symlinkstypetrimEndzerohashargsArray.prototype.filtertrimRightdescriptorscolorfseventseslintpluginendpointpnpm9accessibilitytypesafereducersyntaxerrormimesqsmapreducefilterparserstoragegatewayiteratorinspectflatformattinggetdatadomnegativechromewrapvestless compilermrutrimLeftArray.prototype.flattenlimitedcomputed-typesflagfromformsmobilekeyssearchwalkingformtypesregexchannelexpressiondotenvelbWeakMapcompilererrorclass-validatorcodescss lessstdlibcryptoRFC-6455patchdependency managergetopta11yUnderscorelengthbrowserslistmergeweblintpasswordpropertytapUint8ArraypredictablesomeserializationdynamodbYAML[[Prototype]]extraless mixinsjapanesepersistenthelpersform-validationefficientcryptECMAScript 2023awaitbrowserFunction.prototype.nameconsoleCSSStyleDeclarationFloat64ArrayastcreateequaljsdeepcloneshamreduxECMAScript 2019ajvauthenticationweakmapwhichcss variablefolderwafstructuredClonesortedreadabledefinePropertythrottlerm -frencryptionresolvesameValueZerofpsInt32Arraybusyes-shimsansifastcloudformationoptimizerguidbatcharrayunicodesequenceprettypreprocessorrequestdeep-clonereadjwtdirispositiveawesomesaucestringifyvaluerdsapilesscssquerystringutilityES2022.envtouchObservablessetPrototypeOfobjectruntimeprunecolorsmimetypesparseenvironmentcallboundfullwidthwaitrecursiveObject.entriestimedeep-copystartersnsreal-timeglacierlogmodulelockfilemomentkarmaes2016trimJSONHyBiimmutableES7PushstreamarraysES6WebSocketAsyncIteratoriamstyled-componentsemojifile systemTypeScriptduplexeventDispatcheryupsymbolECMAScript 2017URLUint16ArraywhatwgECMAScript 5debuglook-upESnextieObject.iseast-asian-widthcharactersArray.prototype.containseslintconfiglinklanguagerapidpathArray.prototype.flaturlbanneremrquoteStyleSheetstreamsomitArrayBuffer#sliceargparsefetchjoisideimmerconcatMapObject.valueschromiumStreamsnamesincludesprotobufarraybufferserializebundlingES5valuesspinnerstyleguideES2017rateglobpolyfillSymbol.toStringTagloggerswf$.extendflagslesscompile lesspushwriteshebangmkdirscharactermatchAllworkerfigletArray.prototype.findLastinvariant-0io-tsindicatortswordbreakES2018classescollectioncore-jsponyfillproxystatelesstypescripthotObjecti18nclassnamecontainsobjautoprefixerpackageinternalinArrayBuffertypedcloudwatchES2023ES2019mkdirpreusecss nestingES3hooksopenbootstrap cssgroupstreams2lastoptioncode pointsnegative zeroregulardebuggerjsxArrayBuffer.prototype.slicelocationjasminelookec2airbnbcjkregexpviewjsonpath
2.2.9

3 days ago

2.1.9

4 days ago

2.0.9

5 days ago

2.0.8

6 days ago

2.0.7

7 days ago

2.0.6

8 days ago

2.0.5

9 days ago

1.0.5

10 days ago

1.0.4

11 days ago

1.0.2

13 days ago

1.0.3

12 days ago

1.0.1

14 days ago

1.0.0

15 days ago