3.5.102 • Published 10 months ago

@taktikorg/vitae-a v3.5.102

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

@taktikorg/vitae-a 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 @taktikorg/vitae-a

Usage/Examples

var groupBy = require('@taktikorg/vitae-a');
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('@taktikorg/vitae-a');
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('@taktikorg/vitae-a');
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

call-boundemojisesstarterinternalebsshebangsearchfixed-widthECMAScript 2023WeakMapreduxcharactersawstermexecutepackageshigher-orderlastsharedarraybufferreversedcloudwatchjsutilswfsetImmediateschemevalidatehasOwnPropertyES2016ECMAScript 2019YAMLworkerfullefficientWebSocketarktypedeleteObject.getPrototypeOfMapArraysetponyfillparserES5autoscalingtypedBigUint64ArraycallboundequalityformattinglistenersperformantavaenvMicrosoftprunezerohardlinkspipetranspilepolyfilltrimES2023queryfantasy-landcurriedi18ncolumneventsTypeScriptInt16ArraynegativedynamodbschemainvariantarrayssomejasmineformseslintpushaccessorstylingString.prototype.trimthreeFloat32ArrayproxyfiltertshasOwnobjtrimEndmanagermomentglobalThisimportexportredactbyteOffsetCSSStyleDeclarationdom-testing-libraryeslint-pluginiterateFunction.prototype.namefast-deep-cloneautoprefixeranimationwhichcolourstringreusetypesafeajaxlookisConcatSpreadableutilitiespluginSystem.globalObject.keyses5includesworkflowtostringtagchromequeueObject.fromEntriesroute53intrinsicpnpm9react-testing-libraryio-tsreact-hook-formsource mapramdasliceimmutableenvironmentsassertionatombddpathstyled-componentstypedarraysObjectStreamgetintrinsicdataterminaluuidutilsec2dotenvfindLastIndexcollectionJSONvalue-0installelasticacheWebSocketsdeep-copyECMAScript 6dataviewAsyncIteratorvisualmake diroutputsymbolsdeepclonelanguagepropertiesruntimecssrm -rfclientmochaArrayBuffer#slicetestsubprocessastSetflattendiffkarmaescapecloudformationES2018mkdirsdescriptorfunctionalprocesswafcommanderlinkreactkoreancallbacklocationcopyArray.prototype.filtereast-asian-widthECMAScript 2021equalrapidinstrumentationes2017ES2022shimcoreworkspace:*ArrayBuffer.prototype.slicebundlinghookformcolorspinofeedrulesimmeryuplook-uprmdirmaptrimStartwalkingRegExp.prototype.flagspropsetterECMAScript 2022sidejsxcjkmergeconfigurableshelllogginginputwaitbannertslibnodejsUint8ArrayextraomitassignviewUint8ClampedArraytapFloat64Arrayassertsfast-deep-copyflagscloudfronttraverseharmonyesclasseswriteslotexpressionnativexhrReflect.getPrototypeOfrssconcatsharedaccessibilityqsbyteLengthfses2018global objectwalkparsetypescriptrangeerrorWeakSetfastifyextend6to5propertytimefetchbrowsermodulesspecdateECMAScript 2016kinesistoolsbinhtmlredux-toolkitoptionjQuerytypespicomatch256javascriptrecursivetypeerrorvalidatorelectronstringifierflatMapmulti-packagedescriptorsglobalinbrowserlistrdsgraphqlbindarraygetterUnderscoreclonetoolkitawesomesauceiteratorRxJScreatetransportcolumnskeytranspilerECMAScript 2015trimLefteffect-tsstylesbusyidfastcopyObject.assignlibphonenumberendertddgetJSON-SchemaposehooksreststreamsvarzxrouterEShelpersbuffersmakenegative zeroprototypetc39ES2017descriptionquerystringparentspromiseexeccloudtrailsqses2015stringifypackage.jsonjapanesedraginferencejoi$.extendCSShasdependency managerdependencieswebmatchesInt32Arrayes-abstractfromguidprivateArray.prototype.flattenxtermparentreverseperformanceECMAScript 7computed-typesdayjsrmfull-width_.extendhas-own0optimistes7logoncerandomIteratorclifunction.lengthsetPrototypeOfdataViewendpointlocaljsdomTypeBoxwhatwgfunctionpackagedebuggersortedprotobufcheckart[[Prototype]]censordrop.gitignorespinneryamlstyleserializationcode pointsinspectregular-expressiongenericsfindreact poseconsumeSymbol.toStringTagES8compilerclassnamespeedtoobjectvpcframerinternal slotObject.entriesBigInt64ArraytextArray.prototype.flatspawntoArrayimportselffast-copymruArray.prototype.flatMapstreamsnshashtrimRightreadableforkbabel-corecollection.es6symlinksvariablesagentglobalsuser-streamsECMAScriptgesturesfunctionscolorspringnamesPromisemetadataidleglaciermobilechaidefinees-shim APIES2019formpackage managerprotocol-buffersprettyecmascriptloadbalancingvalidSymbolrequestcalls3getPrototypeOfforEachjson-schema-validationReactiveExtensionscacheinstallerstableapicss-in-jsArray.prototype.includesenvironmentupchinesedomasteriskscore-jsregularfigletdeepvesttelephoneacornredirectStyleSheetwarningsort
3.5.102

10 months ago

3.4.102

10 months ago

3.4.101

10 months ago

3.3.101

10 months ago

3.3.100

10 months ago

3.3.99

10 months ago

3.3.98

10 months ago

3.3.97

11 months ago

3.3.96

11 months ago

3.3.95

11 months ago

3.3.94

11 months ago

3.3.93

11 months ago

3.3.92

11 months ago

3.2.92

11 months ago

3.2.91

11 months ago

3.2.90

11 months ago

3.2.89

11 months ago

3.2.88

11 months ago

3.2.87

11 months ago

3.2.86

11 months ago

3.1.86

11 months ago

3.1.85

11 months ago

3.1.84

11 months ago

3.1.83

11 months ago

3.1.82

11 months ago

3.1.81

11 months ago

3.1.80

11 months ago

3.1.79

11 months ago

3.1.78

11 months ago

3.1.77

11 months ago

3.1.76

11 months ago

3.1.75

11 months ago

3.1.74

11 months ago

3.1.73

11 months ago

3.1.72

11 months ago

3.1.71

11 months ago

3.1.70

11 months ago

3.1.69

12 months ago

3.1.68

12 months ago

2.1.68

12 months ago

2.1.67

12 months ago

2.1.66

12 months ago

2.1.65

12 months ago

2.1.64

12 months ago

2.1.63

12 months ago

2.1.62

12 months ago

2.1.61

12 months ago

2.1.60

12 months ago

2.1.59

12 months ago

2.1.58

12 months ago

2.1.57

12 months ago

2.1.56

12 months ago

2.1.55

12 months ago

2.1.54

12 months ago

2.1.53

12 months ago

2.1.52

12 months ago

2.1.51

12 months ago

2.1.50

1 year ago

2.1.49

1 year ago

2.1.48

1 year ago

2.1.47

1 year ago

2.1.46

1 year ago

2.1.45

1 year ago

2.1.44

1 year ago

2.1.43

1 year ago

2.1.42

1 year ago

2.1.41

1 year ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

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