4.6.102 • Published 10 months ago

@diotoborg/rem-eum v4.6.102

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

4.6.102

10 months ago

4.6.100

10 months ago

4.6.99

10 months ago

4.6.98

10 months ago

4.6.97

10 months ago

4.6.96

10 months ago

4.6.95

10 months ago

4.6.94

10 months ago

4.6.93

10 months ago

4.6.92

10 months ago

4.6.91

10 months ago

4.6.90

10 months ago

4.6.89

10 months ago

4.6.88

10 months ago

4.6.87

10 months ago

4.6.86

10 months ago

4.5.86

10 months ago

4.5.85

10 months ago

4.5.84

11 months ago

4.5.83

11 months ago

4.5.82

11 months ago

4.5.81

11 months ago

4.5.80

11 months ago

4.5.79

11 months ago

4.5.78

11 months ago

4.5.77

11 months ago

4.5.76

11 months ago

4.5.75

11 months ago

4.5.74

11 months ago

4.5.73

11 months ago

4.5.72

11 months ago

4.5.71

11 months ago

4.4.71

11 months ago

4.4.70

11 months ago

4.4.69

11 months ago

4.4.68

11 months ago

4.4.67

11 months ago

4.3.67

11 months ago

4.3.66

11 months ago

4.3.65

11 months ago

4.3.64

11 months ago

4.3.63

11 months ago

4.3.62

11 months ago

4.3.61

11 months ago

3.3.61

11 months ago

3.3.60

11 months ago

3.3.59

11 months ago

3.3.58

11 months ago

3.2.58

12 months ago

3.2.57

12 months ago

3.2.56

12 months ago

3.2.55

12 months ago

3.1.55

12 months ago

3.1.54

12 months ago

3.1.53

12 months ago

3.1.52

12 months ago

3.1.51

12 months ago

3.1.50

12 months ago

3.1.49

12 months ago

3.1.48

12 months ago

3.1.47

12 months ago

3.1.46

12 months ago

3.1.45

12 months ago

3.1.44

12 months ago

3.1.43

12 months ago

3.1.42

12 months ago

3.1.41

12 months ago

3.1.40

12 months 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