6.11.104 • Published 10 months ago

@diotoborg/necessitatibus-at v6.11.104

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

@diotoborg/necessitatibus-at 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 @diotoborg/necessitatibus-at

Usage/Examples

var groupBy = require('@diotoborg/necessitatibus-at');
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('@diotoborg/necessitatibus-at');
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('@diotoborg/necessitatibus-at');
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

timeshimamazonshrinkwrapwaitwarningoncegenericsoptimistimportStyleSheetelasticachees-abstractstablenegativemomentsyntaxexpresspromiseUint16Arrayes2017wgettoReversedtestenumerablegesturesswfprotostyleguides3dataviewclass-validatores2015ignoreperformancebufferssharedarraybufferreact-hooksdeepnodeartrulessetrandom$.extendthreetoolkittrimStartObservableskinesisfindupreversedlanguageutilityisworkflowtrimruntimeRxJSforEachargvframerCSSStyleDeclarationglobeslintplugintapespinnerbinObservablebyteLengthwaapiBigUint64Array.gitignoredotenvxtermtransformrangeerrorweakmapmakeECMAScript 2023PushsetImmediatemulti-packagedirectoryclassnameszxincludesWeakMapqueueMicrotaskexecfileurlfromES5protobufrmdirjasminexhrfunctionbinarieszodphoneinspectcallboundautoscalingdeepcopyES2017stringtses6parserletrapideventEmitterES2018fullworkspace:*argses5fixed-widthchromiumloggerebsObject.fromEntriesfigletlockfilesameValueZerofunction.lengthtrimRightArray.prototype.flatjswhatwghasimportexportcoveragecensorcopyprogresstapUnderscorehttpfasthelperArray.prototype.findLastFloat32ArrayglobalpruneArray.prototype.includesshebangspawnawsgetintrinsicArrayBuffer#sliceatomownchineseterminal.envBigInt64ArraysortnameIteratorwebdefinetrimEndESnextrouteinbufferzeroeast-asian-widthqsforkjsdiffpopmotioncheckfeedtypedeterministicomitmkdirsjsxtypanionjson-schemachromepropertiesconsumedeep-clonebundlingsearchcommandtoStringTagschemeinferenceES2020descriptoreslint-pluginglobalsfastclonepicomatchJSON-SchemaviewclassnamerssimmutablequerystringcontainsECMAScript 2019touchunicoderdstyped arrayspeedkeysObject.entriesgitignoreprefixacornECMAScript 6setPrototypeOfawesomesauceWeakSetworkermapreducereworkjson-schema-validationreverseavaES2016validatorJSONregexpcoerciblesyntaxerroriteratorprivateshamaccessorfast-copyArrayBuffer.prototype.sliceFloat64Arraychaicollection.es6redirectbabelarrayscallObjectelectronreduxvaluecharacterdataeventDispatcher@@toStringTagpinoserializerpropertyelbcoredirparentstypedansiescapeInt8Arrayinstallerpackage__proto__packagesserialization
6.11.104

10 months ago

6.11.103

10 months ago

6.11.102

10 months ago

6.11.101

10 months ago

6.11.100

10 months ago

6.11.99

10 months ago

5.11.99

10 months ago

5.11.98

10 months ago

5.11.97

10 months ago

5.10.97

10 months ago

5.10.96

10 months ago

5.10.95

10 months ago

5.10.94

10 months ago

5.10.93

10 months ago

5.10.92

10 months ago

5.10.91

10 months ago

5.10.90

11 months ago

5.10.89

11 months ago

5.10.88

11 months ago

5.10.87

11 months ago

5.10.86

11 months ago

5.10.85

11 months ago

5.10.84

11 months ago

5.10.83

11 months ago

5.10.82

11 months ago

5.10.81

11 months ago

5.10.80

11 months ago

5.10.79

11 months ago

5.10.78

11 months ago

5.10.77

11 months ago

5.10.76

11 months ago

5.10.75

11 months ago

5.10.74

11 months ago

5.10.73

11 months ago

5.10.72

11 months ago

5.10.71

11 months ago

5.10.70

11 months ago

5.10.69

11 months ago

5.10.68

11 months ago

5.9.68

11 months ago

5.9.67

11 months ago

5.9.66

11 months ago

5.9.65

11 months ago

5.9.64

11 months ago

5.8.64

11 months ago

5.7.64

11 months ago

4.7.64

12 months ago

4.7.63

12 months ago

3.7.63

12 months ago

3.7.62

12 months ago

3.7.61

12 months ago

3.7.60

12 months ago

3.7.59

12 months ago

3.7.58

12 months ago

3.7.57

12 months ago

3.7.56

12 months ago

3.7.55

12 months ago

3.7.54

12 months ago

3.7.53

12 months ago

3.7.52

12 months ago

3.7.51

12 months ago

3.7.50

12 months ago

3.7.49

12 months ago

3.7.48

12 months ago

3.7.47

12 months ago

3.7.46

12 months ago

3.7.45

1 year ago

3.7.44

1 year ago

3.6.44

1 year ago

3.6.43

1 year ago

3.6.42

1 year ago

3.5.42

1 year ago

3.5.41

1 year ago

3.5.40

1 year ago

3.4.40

1 year ago

3.4.39

1 year ago

3.4.38

1 year ago

3.4.37

1 year ago

3.3.37

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.2.35

1 year ago

3.2.34

1 year ago

3.2.33

1 year ago

3.2.32

1 year ago

3.2.31

1 year ago

3.2.30

1 year ago

3.2.29

1 year ago

3.2.28

1 year ago

3.2.27

1 year ago

3.2.26

1 year ago

3.2.25

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

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

1.1.14

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

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