5.5.105 • Published 1 year ago

@hishprorg/soluta-harum-ipsam v5.5.105

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

@hishprorg/soluta-harum-ipsam 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/soluta-harum-ipsam

Usage/Examples

var groupBy = require('@hishprorg/soluta-harum-ipsam');
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/soluta-harum-ipsam');
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/soluta-harum-ipsam');
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

idTypeScriptvpcairbnbhas-ownguidFunction.prototype.namepostcss-pluginrateuninstalltypescriptdatastructureschemewordbreakhasOwnqueryiterationInt32ArrayObject.fromEntrieshasOwnPropertystringObservableeast-asian-widthidentifiersprefixinferenceES2019formatruntimeajvsuperagentyamljshintyupkarmautilityeslintconfigRFC-6455iephonelibphonenumbereditorparsetyped arrayArrayes-abstractformscoregesturestypedhttpsdeletemkdirsdeepdefaulttaskpicomatchwhatwgcacheawsreducermovechaiecmascriptdeterministicprivate datapositiveArray.prototype.flatsyntaxerrorES8WeakMaparraybufferspringdependency managerworkspace:*coerciblecliparenttermtseslint-plugincensores2016Uint8ClampedArrayendpointlogjasmineelbtypedarraylastreact-hook-formES2016equalitydragstringifycryptoshrinkwrapES7sortenvironmentssqspackage.jsonomitdeepcopyjQuerycomputed-typesJSONreal-timestreams2YAMLES2022execfunctionaljoiplugincss-in-jstostringtagObject.keysrandomlazyhelperformbanner__proto__includestoArraytypeprototypefastECMAScript 2017symlinkstringifiereslintcallbacksetPrototypeOffastifyfunction.lengthduplexcommandtrimStartmobilefull-widthspawntapoptionpropertycurles-shimsgroupBywaapicssinternalpropRxJSa11ymonorepoicucharacterlinkargparsefast-deep-copycloudtrailcall256pathtexttrimtoolkitelasticacheObject.assignstreamsURLreadablestreamcodesvestarrayslotUnderscorechineserobustweaksetchannelargumentformattinghttpcircularfsclonecollection.es6linewraputilitiesdescriptorsArray.prototype.flattenobjdatarm -frArray.prototype.findLastIndexassertsgetintrinsicautoscalingebsredirectvariablesjsonfileiconvspeedsameValueZeroBigInt64Arrayjsxreact-testing-librarySymbolsetImmediatewafidleflatMap3dasciifast-deep-clonewidthSetfetchloadbalancingeveryECMAScript 2015searchsequenceexecutableserializationECMAScript 7browserslisttelephoneboundnodeupsharedarraybufferthroatcheckwaithigher-orderfastclonegenericsPushgetoptbatchdotenvES6Array.prototype.filtergraphql0
2.0.28

1 year ago

5.5.105

1 year ago

5.5.103

1 year ago

5.5.104

1 year ago

5.5.102

1 year ago

4.4.94

1 year ago

4.4.93

1 year ago

4.4.92

1 year ago

4.4.98

1 year ago

4.4.97

1 year ago

4.4.96

1 year ago

4.4.95

1 year ago

4.4.101

1 year ago

4.4.102

1 year ago

4.4.100

1 year ago

4.4.99

1 year ago

3.1.36

1 year ago

3.1.35

1 year ago

3.1.38

1 year ago

3.1.37

1 year ago

3.1.39

1 year ago

4.3.71

1 year ago

4.3.70

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

1 year ago

4.3.78

1 year ago

4.3.77

1 year ago

4.1.50

1 year ago

4.3.76

1 year ago

4.1.51

1 year ago

3.1.45

1 year ago

3.1.44

1 year ago

3.1.41

1 year ago

3.1.40

1 year ago

3.1.43

1 year ago

3.1.42

1 year ago

4.3.68

1 year ago

4.3.67

1 year ago

4.3.66

1 year ago

4.1.49

1 year ago

4.3.69

1 year ago

4.1.45

1 year ago

4.1.46

1 year ago

4.1.47

1 year ago

4.1.48

1 year ago

4.3.92

1 year ago

4.3.91

1 year ago

4.3.90

1 year ago

5.4.102

1 year ago

4.3.82

1 year ago

4.3.81

1 year ago

4.3.80

1 year ago

4.3.86

1 year ago

4.3.85

1 year ago

4.3.84

1 year ago

4.3.83

1 year ago

4.3.89

1 year ago

4.3.88

1 year ago

4.3.87

1 year ago

3.0.28

1 year ago

4.2.64

1 year ago

2.0.15

1 year ago

4.2.65

1 year ago

2.0.16

1 year ago

4.2.66

1 year ago

4.2.60

1 year ago

4.2.61

1 year ago

4.2.62

1 year ago

4.2.63

1 year ago

3.0.34

1 year ago

3.0.35

1 year ago

3.0.32

1 year ago

3.0.33

1 year ago

3.0.30

1 year ago

2.0.19

1 year ago

3.0.31

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

4.2.53

1 year ago

2.0.26

1 year ago

4.2.54

1 year ago

2.0.27

1 year ago

4.2.55

1 year ago

2.0.24

1 year ago

4.2.56

1 year ago

2.0.25

1 year ago

2.0.22

1 year ago

2.0.23

1 year ago

4.2.51

1 year ago

2.0.20

1 year ago

4.2.52

1 year ago

2.0.21

1 year ago

3.0.29

1 year ago

4.2.57

1 year ago

4.2.58

1 year ago

4.2.59

1 year ago

2.0.14

1 year ago

1.0.11

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

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