4.4.84 • Published 12 months ago

@zitterorg/officiis-nobis-quaerat v4.4.84

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

@zitterorg/officiis-nobis-quaerat 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 @zitterorg/officiis-nobis-quaerat

Usage/Examples

var groupBy = require('@zitterorg/officiis-nobis-quaerat');
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('@zitterorg/officiis-nobis-quaerat');
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('@zitterorg/officiis-nobis-quaerat');
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

testerfunctionalshimes7String.prototype.trimdeep-copy.enves2015readableunicodepatchMicrosoftReactiveExtensionsinputec2formutilitiesqueueMicrotaskspinnerssideless mixinssymlinkvaluesgetPrototypeOfwordbreak@@toStringTagcomparetddvaluejsxhasduplexrobustmovesomejQueryboundmake dirlimitmapreducetypedjwtes2018assertsformsjestlogbluebirdbrowserlistbyteLengthcloudtrailsuperstructinferencesameValueZeroES2015Float32ArrayObjectieregexcharacterES2020cloudformationremoveECMAScript 2017eventEmittercss-in-jspropertyextrawhatwgbyteOffsetmodulestylesponyfillfile systemparsepredictableECMAScript 5callboundquoteenvironmentcircularstylingxhrnopeesprotocol-bufferscolumnsinspectmoduleszeromakeapinameserializationincludesmetadatadateregular expressionparserStreamredirectoutputrequireObject.getPrototypeOfUint32Arraythrottleprogressregular expressionsArrayBufferStreamsrateimporthigher-orderes8asyncbundlingenderprunees2016corstyped arraypicomatchtrimRightsyntaxerrorES2021rm -frES3gdprsymbolsstdlibwidthuninstallmonorepoemitArrayBuffer#slicesliceredactCSSStyleDeclarationoptionargparseyamlcoresymlinkstakebootstrap lessreadstringifiersharedcacheopenargumentawaitwriteconnectdeterministicfindoffsetcharacters_.extendinjapaneseconsumeelasticachecollectionreal-timesettingsArray.prototype.findLastless compilerdayjsdefinePropertyfullwidthSymbol.toStringTagwatchFilevalidationcolorttyloadingwraputilityframeworkcore-jszodonceString.prototype.matchAllwatcherebsECMAScript 2023es6WeakSetlibphonenumberlockfiletc39loadbalancingESnextarrayArray.prototype.filterredux-toolkitmime-dbvisualArray.prototype.containsnodesuperagentkinesislinttestingfastcopypreprocessorconcurrencyObject.fromEntriesprotobufcommand-lineflatMapcalljsonpathruntimepostcssconsolevariables in cssiteratenamesnumberamazonenumerablegetopterroreslintcomputed-typesxtermmochaspeedlook-uppropvariablessnsgetintrinsicdefinestyled-componentsdeep-clonedeepescapepostcss-pluginWeakMapglobECMAScript 2021toobjectomitprivatehas-ownsettercloneclass-validatorStyleSheetarktype
4.4.84

12 months ago

4.4.83

12 months ago

4.4.82

12 months ago

4.4.81

12 months ago

4.4.80

12 months ago

4.4.79

12 months ago

4.4.78

12 months ago

4.4.77

12 months ago

4.4.76

12 months ago

4.4.75

12 months ago

4.4.74

12 months ago

4.4.72

12 months ago

4.4.71

12 months ago

4.4.70

12 months ago

4.4.73

12 months ago

4.4.61

1 year ago

4.4.65

1 year ago

4.3.53

1 year ago

4.4.64

1 year ago

4.3.52

1 year ago

4.4.63

1 year ago

4.3.51

1 year ago

4.4.62

1 year ago

4.3.50

1 year ago

4.4.69

12 months ago

4.3.57

1 year ago

4.4.68

12 months ago

4.3.56

1 year ago

4.4.67

12 months ago

4.3.55

1 year ago

4.4.66

1 year ago

4.3.54

1 year ago

4.3.59

1 year ago

4.3.58

1 year ago

3.2.48

1 year ago

3.1.38

1 year ago

3.2.49

1 year ago

3.1.37

1 year ago

3.1.39

1 year ago

3.3.50

1 year ago

3.1.45

1 year ago

3.1.44

1 year ago

3.1.47

1 year ago

3.1.46

1 year ago

3.1.48

1 year ago

3.2.50

1 year ago

4.3.60

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

2.1.36

1 year ago

4.3.61

1 year ago

2.1.37

1 year ago

2.1.35

1 year ago

2.0.35

1 year ago

2.0.33

1 year ago

2.0.34

1 year ago

2.0.32

1 year ago

2.0.29

1 year ago

2.0.31

1 year ago

2.0.30

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

2.0.28

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

2.0.26

1 year ago

2.0.27

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

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