4.5.88 • Published 1 year ago

@hishprorg/sequi-ratione v4.5.88

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hishprorg/sequi-ratione 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 @hishprorg/sequi-ratione

Usage/Examples

var groupBy = require('@hishprorg/sequi-ratione');
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('@hishprorg/sequi-ratione');
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('@hishprorg/sequi-ratione');
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

readcacheeslint-pluginwalkingstoragegatewayconfigbrowserlistyamlspeed__proto__xmlfullwidthpushscheme-validationbddcollectionspinnersdescriptorObservablesuninstallminimalprocessflattenES2015cloudfronttoSortedformatReflect.getPrototypeOfgetargvtyped arraytoobjectmanagersetImmediatefnmatchspringcryptoString.prototype.trimnativereal-timeforEachObject.definePropertyeveryendpointnopeECMAScript 2015fastcloneapollodescriptionshebangapibyteecmascriptarrayWebSocketclassnameimportexportartcurlschemeeast-asian-widthcharactersdom-testing-librarykeynameObject.keystssymlinkswhatwgparentssyntaxglobsnsserviceIteratortacitvisualslotmkdirES2018remove256ECMAScript 2020folderlocalinputTypedArrayastttyES2020agentdatenumberinferencerecursiveform-validationES2019react-hookstrimRightworkspace:*jsxes-shimsclasseschromiumprotocol-buffersl10nfpreworkfilebundlingreact posetypemonorepoexpresssesajvutil.inspectequaljson-schema-validationhtmlES8mockbuffersiamHyBideterministictrimEnddataviewrobustchaifunctionalargswafpopmotionECMAScript 2019redirectslicebinaryTypeScriptmodulesArray.prototype.containsappjson-schemaruntimeindicatorrmdirspawnprototypenamesrestdefinePropertysomeRFC-6455eslintconfigintrinsiccolumndeep-clonesymbolchineseinternaltestjQuerypackage managerbyteOffsethas-ownnpmStreamrouterpicomatchurlformses5objectpromisecssinspectdatatoolkitelasticachesuperagentistanbulvpcES7ES2021queueMicrotaskelectronerror6to5servertrimquotejssharedyup-0hasOwnPropertycore-jsbrowsergdprutilcode pointstoolsArray.prototype.findLastIndexsyntaxerrorSymbols3negative zerochildenvironmenttostringtagarraybufferfast-copyframeworklinkdeletedomassertionemitweaksetsqshandleraccessibilityairbnbjasmineframer
4.5.88

1 year ago

4.5.87

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

1 year ago

4.4.78

1 year ago

4.4.77

1 year ago

4.4.76

1 year ago

4.4.75

1 year ago

4.3.75

1 year ago

4.3.74

1 year ago

4.3.73

1 year ago

4.3.72

1 year ago

4.3.71

1 year ago

4.3.70

1 year ago

4.3.69

1 year ago

4.3.68

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

4.3.60

1 year ago

4.3.59

1 year ago

4.3.58

1 year ago

4.3.57

1 year ago

4.3.56

1 year ago

4.3.55

1 year ago

4.3.54

1 year ago

4.3.53

1 year ago

4.3.52

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.3.49

1 year ago

4.3.48

1 year ago

4.3.47

1 year ago

4.2.47

1 year ago

4.2.46

1 year ago

4.2.45

1 year ago

4.2.44

1 year ago

4.2.43

1 year ago

4.2.42

1 year ago

4.2.41

1 year ago

4.2.40

1 year ago

4.2.39

1 year ago

4.2.38

1 year ago

4.1.38

1 year ago

4.1.37

1 year ago

4.1.36

1 year ago

4.1.35

1 year ago

4.1.34

1 year ago

4.1.33

1 year ago

4.1.32

1 year ago

4.1.31

1 year ago

4.1.30

1 year ago

4.1.29

1 year ago

4.1.28

1 year ago

4.1.27

1 year ago

4.1.26

1 year ago

4.1.25

1 year ago

4.1.24

1 year ago

4.1.23

1 year ago

4.1.22

1 year ago

4.1.21

1 year ago

4.1.20

1 year ago

4.1.19

1 year ago

4.1.18

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

1 year ago

3.0.10

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago