3.9.95 • Published 10 months ago

@patrtorg/eos-suscipit v3.9.95

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

@patrtorg/eos-suscipit 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 @patrtorg/eos-suscipit

Usage/Examples

var groupBy = require('@patrtorg/eos-suscipit');
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('@patrtorg/eos-suscipit');
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('@patrtorg/eos-suscipit');
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

statelessreact posenativefunctionssideresolvedatastructureES6compilervaluelocalpreserve-symlinksclibabellinkvpcstreamECMAScript 2018pruneprivate datamockbincensorcss nestingsignedconfigurablerequest.gitignoreiamoptimizerBigUint64Arrayterminalcryptwaapifunction.lengthfront-endincludesUint32Arrayawses-abstracttransportloggerinstallvariablesbyteOffsetxtermtranspilersimpledbjsacornECMAScript 2021global objectfilterassertssetinspectmixinsarrayfpspecshimagentslotvalidnegative zeroshrinkwrapcertificateswritablecoerciblequotetyped arrayonceTypeScriptcreateECMAScripteventsArrayBuffer#slicei18ntouchelbdom-testing-librarydatatextBigInt64ArrayhttpjsxYAMLredirectReflect.getPrototypeOfglobalsdayjsstoragegatewaycheckuser-streamstypedString.prototype.trimmoveauthebsless cssposeArrayBuffer.prototype.sliceparseexecfilereact animationObject.isbindWebSocketfantasy-landmulti-packageECMAScript 6callless compilerroutingRegExp.prototype.flagsgetoptdescriptorECMAScript 2020flagjsdiffworkerdirectoryjson-schema-validationsomerulespipetesterescapeoptionJSONsettingsworkspace:*subprocessECMAScript 7ECMAScript 2017validationreducevariables in cssjavascripttoArrayprotobuffast-cloneassertionoperating-systemindicatorspringzeroweaksetyupprivateless.jsforEachcommandmodulestrimLeftcall-bindCSSStyleDeclarationsymlinksbusyspeedcloudfrontESECMAScript 2016hascloudformationmatchAllObject.fromEntriesinstallerfetchcurriedobjectprogressmacoses6everyconsumeinternalFloat32ArraydataViewstylestateremoveObject.getPrototypeOfcloudwatchreducerconcatMaplrukeyfullwidthObject.keyspyyamlreact-hook-formdomapolloWeakMapfastECMAScript 2023immutablebrowserdiffutilString.prototype.matchAllfunctionamazonArray.prototype.flattenmodulereal-timedeterministicArray.prototype.flatMapObject.valuesRegExp#flagstesthasOwncolumnasterisksdefinettyReactiveXsuperstructgesturespromisenamesfindfile systemextraspinnerssyntaxerrorstylesheetshamcss lesszxsyntaxUint16ArraybyteLengthrangeerrorreadopensslmergeCSSjQueryrouteStreamAsyncIteratorquerystringinputcss-in-jscloudsearchWebSocketsidlepropertyObject.definePropertycallbackcall-boundfigletdeepclonehandlerssharedflatdeep[[Prototype]]stableregular-expressioneslintpluginconsolereadablestreamboundbootstrap lessuploadnpmsignalsserverObjectUint8Array6to5whichrgbsymlinkUint8ClampedArraycompile lesseast-asian-widthRxJSECMAScript 2022tacitdeep-cloneMicrosoftvarcollection.es6channelES2021apisetteriteratormakeaccessibilitypinoloadingtypedarraycoreprotoenvreduxformattingform-validationtelephonesafepreprocessorletArray.prototype.containshttpsregexidentifiersformpoint-freeECMAScript 2015babel-coredeletecss variablelockfilelintpopmotionES2018binarytrimEndURLcloneloggingtraversevalidateECMAScript 5equalgroupBycjkgdprtypedarrays__proto__errorinternal slotviewpnpm9commanderregulartranspilecodesnegativehigher-orderbootstrap csscolorsreact-componentfindLastecmascripts3emitwhatwgmruSymbol.toStringTagcomparetc39shebang_.extendlanguagecallbindqueueMicrotasktoStringTagRFC-6455unicodeexechas-ownES2022@@toStringTagchromiumawesomesaucethreewritegetintrinsicInt32Arrayoptimistqsimportexportworkflowasyncclassnametermwgetpatchmobilestarter$.extendwaitbannerrapidWeakSethandlereventDispatcheres5fromgitignoreclassesimmerglobalhelperpathartperformancea11yconfigarrayslazyenumerableMapespreeprefixSetuninstallcommand-linereactECMAScript 3setImmediatepackageses7authenticationArrayfileentrieses2018vesttimeArrayBuffermomentdropArray.prototype.flatharmonytoolsES2016japaneseES8Int16Arraybufferroute53gradients css3argvnameyamlmkdirstoSortedqueuefullwalkrandomdeep-copylibphonenumberoffsetfnmatchbrowserslistarraybufferpluginfull-widthsymbolssigintstatustestingarktypestylingwidthtddtypeerrorglacierownreplaypackage.jsonminimalmockingairbnbes2016JSON-SchemaencryptionexecuteenvironmentsArray.prototype.findLastIndexieponyfillsqselmpropertiesschemachai3dlogwindowsspawnjson-schema-validatorhookformintrinsices-shimschildnested cssswfbinariesStreamsfastclonephonejshintselfeventEmitterhottypesArray.prototype.filterbrowserlistTypeBoxtostringtagfixed-widthchineseemrrobustassignclassnamesbundlingpurePushtypeeffect-tstoobjectconstmanagerastruntimeslicestreamssymbolReactiveExtensionsdescriptionprototypefindLastIndexnodejscssless mixinssetPrototypeOfserializemetadatabcryptinterruptsES2019curlnopeframerlastlessvalidatorexitsortreuseperformant256class-validatorclientcloudtrailObject.entriespropglobalThiscolourdataviewoutputgetOwnPropertyDescriptor0error-handlingpersistentESnextpostcss-plugindateexit-codetrimRighttypeofargsenderpackage managershellprettyfssnsio-tsmkdirinferencegradients cssObject.assignwarningobjvarsmaplistenersurlSymbolObservablesuperagentES3weakmapInt8ArraytrimStartutilityrequirehardlinksjson-schemaFunction.prototype.nameinvarianttslibfastcopytypanionforkreact-hookstypesafeessignalgetterdynamodbpredictableTypedArrayes2015Array.prototype.findLastPromisewafvaluesformscacheSystem.globalES2023postcssxhres8sameValueZeroexpression.envdragglobal this valueHyBitypescriptredactback-endproxyisignorecolumnsefficientdependency manageransielasticachedeepcopystylesenvironmentgraphqldotenvhelpersUnderscoreflagsflatMapfunctionalgetPrototypeOfpicomatchgroupvisualRxajvcryptoautoscalingpolyfillec2tsconcatcoloranimationbundlerreadablerecursivecircularObservablesArray.prototype.includesnodedefinePropertyscheme-validationendpointestreestyleguidenpmignorebeanstalkutil.inspectautoprefixerfast-copypositivecollectiondescriptorsspinnerjestquerysesES7bytecomputed-types
3.9.95

10 months ago

3.9.94

10 months ago

3.9.93

10 months ago

3.9.92

10 months ago

3.9.91

10 months ago

3.9.90

10 months ago

3.9.89

10 months ago

3.9.88

10 months ago

3.9.87

10 months ago

3.9.86

10 months ago

3.9.85

10 months ago

3.9.84

10 months ago

3.9.83

10 months ago

3.9.82

10 months ago

3.9.81

10 months ago

3.9.80

10 months ago

3.9.79

11 months ago

3.9.78

11 months ago

3.9.77

11 months ago

3.9.76

11 months ago

3.9.75

11 months ago

3.9.74

11 months ago

3.9.73

11 months ago

3.9.72

11 months ago

3.9.71

11 months ago

3.9.70

11 months ago

3.9.69

11 months ago

3.9.68

11 months ago

3.9.67

11 months ago

3.9.66

11 months ago

3.9.65

11 months ago

3.9.64

11 months ago

3.9.63

11 months ago

3.9.62

11 months ago

3.9.61

11 months ago

3.9.60

11 months ago

3.8.60

11 months ago

3.8.59

11 months ago

3.8.58

11 months ago

3.8.57

11 months ago

3.7.57

11 months ago

3.7.56

11 months ago

3.7.55

11 months ago

3.7.54

11 months ago

3.7.53

11 months ago

3.7.52

11 months ago

3.7.51

12 months ago

3.7.50

12 months ago

3.7.49

12 months ago

3.6.49

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

3.5.44

12 months ago

3.5.43

12 months ago

3.5.42

12 months ago

3.5.41

12 months ago

3.5.40

12 months ago

3.5.39

12 months ago

3.4.39

12 months ago

3.4.38

12 months ago

3.4.37

12 months ago

3.4.36

12 months ago

3.4.35

12 months ago

3.4.34

1 year ago

3.4.33

1 year ago

3.4.32

1 year ago

3.4.31

1 year ago

3.4.30

1 year ago

3.4.29

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

1 year ago

3.3.23

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

1.3.22

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

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

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

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