3.5.102 • Published 1 year ago

@taktikorg/vitae-a v3.5.102

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

3.4.102

1 year ago

3.4.101

1 year ago

3.3.101

1 year ago

3.3.100

1 year ago

3.3.99

1 year ago

3.3.98

1 year ago

3.3.97

1 year ago

3.3.96

1 year ago

3.3.95

1 year ago

3.3.94

1 year ago

3.3.93

1 year ago

3.3.92

1 year ago

3.2.92

1 year ago

3.2.91

1 year ago

3.2.90

1 year ago

3.2.89

1 year ago

3.2.88

1 year ago

3.2.87

1 year ago

3.2.86

1 year ago

3.1.86

1 year ago

3.1.85

1 year ago

3.1.84

1 year ago

3.1.83

1 year ago

3.1.82

1 year ago

3.1.81

1 year ago

3.1.80

1 year ago

3.1.79

1 year ago

3.1.78

1 year ago

3.1.77

1 year ago

3.1.76

1 year ago

3.1.75

1 year ago

3.1.74

1 year ago

3.1.73

1 year ago

3.1.72

1 year ago

3.1.71

1 year ago

3.1.70

1 year ago

3.1.69

1 year ago

3.1.68

1 year ago

2.1.68

1 year ago

2.1.67

1 year ago

2.1.66

1 year ago

2.1.65

1 year ago

2.1.64

1 year ago

2.1.63

1 year ago

2.1.62

1 year ago

2.1.61

1 year ago

2.1.60

1 year ago

2.1.59

1 year ago

2.1.58

1 year ago

2.1.57

1 year ago

2.1.56

1 year ago

2.1.55

1 year ago

2.1.54

1 year ago

2.1.53

1 year ago

2.1.52

1 year ago

2.1.51

1 year 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