4.6.102 • Published 12 months ago

@diotoborg/rem-eum v4.6.102

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

@diotoborg/rem-eum Version Badge

github actions coverage License Downloads

npm badge

An ESnext spec-compliant Map.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 @diotoborg/rem-eum

Usage/Examples

var groupBy = require('@diotoborg/rem-eum');
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, new Map([
    ['even', [0, 2, 4]],
    ['odd', [1, 3, 5]],
]));
var groupBy = require('@diotoborg/rem-eum');
var assert = require('assert');
/* when Map.groupBy is not present */
delete Map.groupBy;
var shimmed = groupBy.shim();

assert.equal(shimmed, groupBy.getPolyfill());
assert.deepEqual(Map.groupBy(arr, parity), groupBy(arr, parity));
var groupBy = require('@diotoborg/rem-eum');
var assert = require('assert');
/* when Array#group is present */
var shimmed = groupBy.shim();

assert.equal(shimmed, Map.groupBy);
assert.deepEqual(Map.groupBy(arr, parity), groupBy(arr, parity));

Tests

Simply clone the repo, npm install, and run npm test

testingresolveglobec2transpiler.gitignorelintpusheveryArray.prototype.flatMapclientformattinguser-streamscloneconfigurablecloudformationjson-schemacssfpsregular expressiontextlazyexit-codeECMAScript 6monorepooperating-systempolyfillelectronmkdirppluginignoregroupglobal objectastsetPrototypeOfECMAScript 3whichless mixinsmockArrayBuffer#sliceyuploggingBigInt64Arraydependency managerObject.definePropertysorttraversematchfast-deep-clonepreprocessorexecuteeventDispatcherUint16Arrayhotcss variablechinesespawnfantasy-landrapidpurees5css lesselmpackagesArray.prototype.includesexecArrayBufferinvarianteslintplugintypedarrayssyntaxerrorObjectexpressiontoArraypackage.jsonreducerRxJShelpersRegExp.prototype.flagsisjson-schema-validationfindLastIndexchromeanimationcolumnsenvstyleguidehookformfullwidthtrimRightencryptionECMAScript 2020intelephoneeslintcss nestingmacosstreammakeECMAScript 2016typeReflect.getPrototypeOfReactiveExtensionstakefast-clonesqsconsoleInt16ArraysettercompilerECMAScript 2023sharedarraybuffertrimStarttypeerrorhasOwncryptoECMAScript 2015package managercomparejapanesesigtermmanagerbusywaapistyleecmascriptpostcssweakmapspinnersObject.isregularnumberlivecheckcommandersignalschannelgetintrinsicTypedArrayequalitygetOwnPropertyDescriptornegativees7importexportasyncinstallerdeep-copyECMAScript 2017ES2020enumerable-0shellauthenticationlesstypeofUint8ClampedArrayenvironmentsetImmediatewritedefinehardlinkskinesisiterateclasses@@toStringTagECMAScript 5autoscalingi18nstringifiercurlrequirereadvariablesObject.valuesString.prototype.trimnodepositivesyntaxinferenceprototypegraphqlwafroutestylingyamljsonschemabuffercolumnlengthramdaES2016deepclonestreamsbinaryutilityreadablestreamWebSocketCSSStyleDeclarationES2018fastcloneweaksetbundlerdataViewestreerequestdescriptorstypedarraytransportFloat32Arrayinternalprocesspatchstylestypaniones2015concathandlersfile systemcolourcharactertesteriamtypedrobustglobal this valueReactiveXajaxvalidationkeysWebSocketsECMAScript 2021persistentflattenerroreslint-plugininternal slotparserspecaccessordescriptorRFC-6455randomcodesvarsobjectasciipromisekoreanbyteLengthsymbolfast-deep-copyprefixserializerES20216to5deepObject.getPrototypeOfwindowsECMAScript 2018proptoolkitsortedes2018stableString.prototype.matchAllomitdeep-clonepropertyauthloadingES2022flagsArray.prototype.flatfluxInt32ArraymomentenderzxtermmkdirsmatchesbintranspilegetfastcopyUint8ArraylethasOwnPropertyarktypeoptimizeres6lockfileES8mruieback-endhashqueueperformancevaluesawswidthgetoptcall-bindmulti-packagecall-boundopensslincludeshooksECMAScript 2022loadbalancinges-abstractfindLastcreatenativeMapclireact-componentflatclassnamebrowserslistIterator256expressairbnbstructuredClonetyped arrayqueueMicrotaskredirectstartersesvariables in cssregular-expressionwindowargumentoffseturlcjkprivate datafnmatchtoobjectdirectoryformatcomputed-typesWeakMapform-validationtc39containsgenericsnamesuperagentdropsomescheme-validationregexnpmignoreless compilerspinneres2016installdomcss-in-jsposedatasuperstructjson-schema-validatorunicodefastifyspeeddom-testing-libraryequalArray.prototype.flattenclass-validatorenvironmentsansiintrinsicasteriskscolorPushflatMapfromjestmovepostcss-pluginstringifydeletestatusfigletstoragegatewayfilterutilserror-handlingObject.keysFunction.prototype.nameStreamsbootstrap cssthreeexecfileless.jsutil.inspectpopmotionstringcolorsexitmake dirURLgradients css3side__proto__symlinkbcryptutilpicomatchtostringtagWeakSetslotkeyeventsoutputprogressObject.entriesprotopathwritableproxyfast-copyreadableworkflowbootstrap lesssettingscurriedes-shim APIStyleSheetcallarraybufferdatejsonArray.prototype.filterassertion_.extendwaitchaijsmapreducediffescapeisConcatSpreadableimmutablebindqsendpointcloudtrailfsSymbol.toStringTagqueryjQueryRxobjreact-testing-libraryserverremovechilddependenciesvisualcommand-linelibphonenumberterminalsignalrulessignedescopymapelasticachefunction.lengthStreamBigUint64Arrayshrinkwrapserializeawesomesauce[[Prototype]]logdataviewfastgradients cssparseargssliceautoprefixerObject.assignbrowserlistviewhandlerjsxrdsapollosetpipegetterreactES2019typesafehigher-ordercore-jscorepreserve-symlinksSetlruownimportRegExp#flagsclassnamesES2023definePropertyES5URLSearchParamsInt8Arrayharmonyhttpsconfigglobalsreact poseFloat64ArrayvestnopetrimES2015descriptionttyeast-asian-widthtslibemitnegative zeroprotocol-buffersdeterministictypescriptfetchloggersafedotenvCSSacornpropertieswgetcollectionefficientiteratorvalidsameValueZeroboundarraysbabel-coreselfES3ArrayBuffer.prototype.sliceruntimedayjsmoduleperformanttrimEndstatelessfixed-widthbytereal-timecirculargitignorejavascriptoncecloudwatchredactArray.prototype.findLastIndexTypeScriptfront-endentriesES2017optionwhatwggetPrototypeOffindreusevalidateextendwalkjsdomio-tsarraysham
4.6.101

12 months ago

4.6.102

12 months ago

4.6.100

12 months ago

4.6.99

1 year ago

4.6.98

1 year ago

4.6.97

1 year ago

4.6.96

1 year ago

4.6.95

1 year ago

4.6.94

1 year ago

4.6.93

1 year ago

4.6.92

1 year ago

4.6.91

1 year ago

4.6.90

1 year ago

4.6.89

1 year ago

4.6.88

1 year ago

4.6.87

1 year ago

4.6.86

1 year ago

4.5.86

1 year ago

4.5.85

1 year ago

4.5.84

1 year ago

4.5.83

1 year ago

4.5.82

1 year ago

4.5.81

1 year ago

4.5.80

1 year ago

4.5.79

1 year ago

4.5.78

1 year ago

4.5.77

1 year ago

4.5.76

1 year ago

4.5.75

1 year ago

4.5.74

1 year ago

4.5.73

1 year ago

4.5.72

1 year ago

4.5.71

1 year ago

4.4.71

1 year ago

4.4.70

1 year ago

4.4.69

1 year ago

4.4.68

1 year ago

4.4.67

1 year ago

4.3.67

1 year ago

4.3.66

1 year ago

4.3.65

1 year ago

4.3.64

1 year ago

4.3.63

1 year ago

4.3.62

1 year ago

4.3.61

1 year ago

3.3.61

1 year ago

3.3.60

1 year ago

3.3.59

1 year ago

3.3.58

1 year ago

3.2.58

1 year ago

3.2.57

1 year ago

3.2.56

1 year ago

3.2.55

1 year ago

3.1.55

1 year ago

3.1.54

1 year ago

3.1.53

1 year ago

3.1.52

1 year ago

3.1.51

1 year ago

3.1.50

1 year ago

3.1.49

1 year ago

3.1.48

1 year ago

3.1.47

1 year ago

3.1.46

1 year ago

3.1.45

1 year ago

3.1.44

1 year ago

3.1.43

1 year ago

3.1.42

1 year ago

3.1.41

1 year ago

3.1.40

1 year ago

3.1.39

1 year ago

3.1.38

1 year ago

3.1.37

1 year ago

3.1.36

1 year ago

3.1.35

1 year ago

3.1.34

1 year ago

3.1.33

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

3.1.30

1 year ago

3.1.29

1 year ago

3.1.28

1 year ago

3.1.27

1 year ago

3.1.26

1 year ago

3.1.25

1 year ago

3.1.24

1 year ago

3.1.23

1 year ago

3.1.22

1 year ago

3.1.21

1 year ago

3.1.20

1 year ago

3.1.19

1 year ago

3.1.18

1 year ago

3.1.17

1 year ago

3.1.16

1 year ago

3.1.15

1 year ago

3.1.14

1 year ago

3.1.13

1 year ago

3.1.12

1 year ago

3.1.11

1 year ago

3.1.10

1 year ago

3.0.9

1 year ago

2.0.9

1 year ago

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