5.13.93 • Published 10 months ago

@erboladaiorg/nesciunt-ullam v5.13.93

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

@erboladaiorg/nesciunt-ullam 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/nesciunt-ullam

Usage/Examples

var groupBy = require('@erboladaiorg/nesciunt-ullam');
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/nesciunt-ullam');
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/nesciunt-ullam');
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

tapdescriptorobjasterisksbeanstalkchaipackagesweakmapdomastiterateform-validationlinkmergehardlinksECMAScript 2020classeslastvaremitbabel-corerestcircularspinnersterminalreworksource mapfastcopychildconsumeavaswfhashpostcssworkflowutilitiesmanipulationES2016lookArrayBufferbrowserimportdom-testing-librarypathquerystringrmdircollectionzeroMapspawnframeworkforEachistanbulfindLastIndexpruneregular expressioneslintconfigglobal objectmovemap__proto__package managernpmincludeswhichmanagerisConcatSpreadablefetches2015ECMAScript 2018assertsestreeimmergdprECMAScript 2023binariesES2021react-hooksmapreduceES2017browserlistStyleSheetefficientdirectory6to5hasOwnPropertyjQuerysesextendRFC-6455coretestcheckstarterrm -rfglobal this valuetransportcloudfrontglacierinvariantemojiuninstallArray.prototype.flattenoptimizertypedarraydataViewSetES2015localloadbalancingmonorepoloadingserializerString.prototype.trimconfigtoolkitroutingpostcss-plugindragArrayvestWeakMapcharactersownnegative zeroenvironmentES2022requestTypeScriptselfquerytranspileomitRegExp#flagsbabelrouteremrequallengthuser-streamsnodejstc39identifiersesfast-deep-copyfullwidthprivate dataqueuebuffernamestringifyreversedECMAScript 2016valuesdiffserializationes-abstractvalueURLmakedeep-copyString.prototype.matchAlltesterReactiveExtensionsES2020fast-copymobilewaitslotInt32ArraybinES6rgboutputhelpersidartspinnertypesafehttpsenumerablereduceintrinsicECMAScript 7Symbol.toStringTagcurriedcloudtrailpropertywaapifastifyletredux-toolkitkeynegativesqsprototypevisualcoverageJSON-Schemadeep-clonecolumnsnsvpcESnextpicomatchvalidspecdependenciesReactiveXArray.prototype.includesUint8ArrayES8agentexecArrayBuffer.prototype.sliceutil.inspectoptionrequirequotejson-schema-validatordefinecompilerprotobufvalidationdateeslint-pluginmatchclass-validatorstoragegatewaypropsuperstructpromiseendercloudsearchiteratortraversejestrdscollection.es6io-tstestingperformancecurlWebSocketscolumnsdeepcloneforkphonecommandObject.keysignoreflatMapshimfast-deep-cloneenvironmentspositiverangeerrorkinesisjspurecryptoregexpconstcore-jsconcatES7hasOwndirredirectsyntaxerrorminimallogchrometslibsetImmediateec2es2017typescriptFloat32ArraysomevalidateimportexporttoolsgenericsendpointObservablehttpcomputed-typesansiFloat64ArraysortObject.entriesnumberSystem.globalmomentassertioninstrumentationArray.prototype.findLastIndexexecfilees6code pointsgetterarrayObject.definePropertylocationdescriptioniamreact posereuseenvdeterministicstylesjavascriptdatapropertiesURLSearchParamses8nodestyletypesxhrnpmignorewarningmatchesObject.assignamazonworkspace:*ietypeofbundlerdeepcopyparentstringelectronviewUint8ClampedArraydynamodbsetlintescapeshrinkwrapprefixshebanginferencefindLaststablefunctionsxtermstyled-componentswhatwgreadcommand-lineUint16ArrayjsdiffpyyamlurlvalidatorhtmldefinePropertycall-bindSymbolglobalprettyArray.prototype.findLastdebuggerfunctiontddpackagemkdirpinspectrfc4122argsstreamslicereact-testing-libraryECMAScriptlockfilebundlingESsetPrototypeOfelbArray.prototype.containsInt16ArrayconcatMapmruespreeautoprefixerasciikarmajsontsoffset256immutablenamesajvECMAScript 2017textnativeArray.prototype.flatMapanimationeslintpluginregular-expressionprivatePushproxycacherapidremovethreegetOwnPropertyDescriptorglobformattingtoSortedchromiumstylingfnmatchroutelistenersacornsearchelasticachecodesflattenstyleguidefastclonesuperagentfullzodsharedarraybufferHyBicloudwatchjsonschematrimEndwritabletypedonceTypeBoxfunction.lengthmocha
5.13.93

10 months ago

5.13.92

10 months ago

5.13.91

10 months ago

5.13.90

10 months ago

5.12.90

10 months ago

5.12.89

11 months ago

5.12.88

11 months ago

5.11.88

11 months ago

5.11.87

11 months ago

5.10.87

11 months ago

5.10.86

11 months ago

5.10.85

11 months ago

5.9.85

11 months ago

5.9.84

11 months ago

5.9.83

11 months ago

5.9.82

11 months ago

5.9.81

11 months ago

5.9.80

11 months ago

5.9.79

11 months ago

5.9.78

11 months ago

5.9.77

11 months ago

5.9.76

11 months ago

5.9.75

11 months ago

5.9.74

11 months ago

5.9.73

11 months ago

5.9.72

11 months ago

5.9.71

11 months ago

5.9.70

11 months ago

5.8.70

11 months ago

5.8.69

11 months ago

5.8.68

11 months ago

5.8.67

11 months ago

5.8.66

11 months ago

5.8.65

11 months ago

5.8.64

11 months ago

5.8.63

12 months ago

5.8.62

12 months ago

5.8.61

12 months ago

5.8.60

12 months ago

5.7.60

12 months ago

5.7.59

12 months ago

5.7.58

12 months ago

5.7.57

12 months ago

5.7.56

12 months ago

5.7.55

12 months ago

5.7.54

12 months ago

5.7.53

12 months ago

5.7.52

12 months ago

5.7.51

12 months ago

5.7.50

12 months ago

4.7.50

12 months ago

4.7.49

12 months ago

4.6.49

12 months ago

4.6.48

12 months ago

4.6.47

12 months ago

4.6.46

1 year ago

4.6.45

1 year ago

4.6.44

1 year ago

4.6.43

1 year ago

4.6.42

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

1 year ago

4.6.35

1 year ago

4.6.34

1 year ago

4.6.33

1 year ago

4.6.32

1 year ago

4.6.31

1 year ago

4.6.30

1 year ago

4.6.29

1 year ago

4.6.28

1 year ago

3.6.28

1 year ago

3.6.27

1 year ago

3.6.26

1 year ago

3.6.25

1 year ago

3.6.24

1 year ago

3.6.23

1 year ago

3.5.23

1 year ago

3.5.22

1 year ago

3.5.21

1 year ago

3.4.21

1 year ago

3.3.21

1 year ago

3.3.20

1 year ago

3.2.20

1 year ago

3.2.19

1 year ago

3.2.18

1 year ago

3.2.17

1 year ago

3.2.16

1 year ago

3.2.15

1 year ago

3.2.14

1 year ago

3.2.13

1 year ago

3.2.12

1 year ago

3.2.11

1 year ago

3.2.10

1 year ago

3.1.10

1 year ago

3.1.9

1 year ago

3.1.8

1 year ago

3.1.7

1 year ago

3.1.6

1 year ago

3.1.5

1 year ago

3.1.4

1 year ago

3.1.3

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago