4.8.131 • Published 10 months ago

@diotoborg/tenetur-nobis-maiores v4.8.131

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

@diotoborg/tenetur-nobis-maiores Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2019 spec-compliant Array.prototype.flat 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.

Because Array.prototype.flat depends on a receiver (the this value), the main export takes the array to operate on as the first argument.

Getting started

npm install --save @diotoborg/tenetur-nobis-maiores

Usage/Examples

var flat = require('@diotoborg/tenetur-nobis-maiores');
var assert = require('assert');

var arr = [1, [2], [], 3, [[4]]];

assert.deepEqual(flat(arr, 1), [1, 2, 3, [4]]);
var flat = require('@diotoborg/tenetur-nobis-maiores');
var assert = require('assert');
/* when Array#flat is not present */
delete Array.prototype.flat;
var shimmedFlat = flat.shim();

assert.equal(shimmedFlat, flat.getPolyfill());
assert.deepEqual(arr.flat(), flat(arr));
var flat = require('@diotoborg/tenetur-nobis-maiores');
var assert = require('assert');
/* when Array#flat is present */
var shimmedIncludes = flat.shim();

var mapper = function (x) { return [x, 1]; };

assert.equal(shimmedIncludes, Array.prototype.flat);
assert.deepEqual(arr.flat(mapper), flat(arr, mapper));

Tests

Simply clone the repo, npm install, and run npm test

minimalcoercibleconfigelectronclass-validatorlockfileloadbalancingxhrassigntypescmdECMAScript 5circulardebugfindLastsortwritemodulemulti-packageregexredactWebSocketstructuredClonemapreducetoolsjasmineworkerpackagetostringtagconcatMapsameValueZerocomputed-typesstoragegatewayerroroptiondeterministicschemecontainsCSSStyleDeclarationloggerObservableseventEmittertc39difftypedarraycodesECMAScript 2015full-widthprocessa11ytouchfastprivatenameprototypeclientdatevalidmkdirstypescriptstylelookstreams2es-shim APIform-validationReactiveExtensionspropescapeUint8Arrayes2017Float32Arrayassertiongethas-ownhookformdataViewfast-deep-copycoreBigInt64ArrayvpcconsoletoSortedtaskECMAScript 2023extraexpresspropertyconvertconsumeshimcallboundURLSearchParamsponyfillstringifierbundlingieformatreact-testing-librarystablefile systemjsonpathglob$.extendES2018testingremoveuuidArrayBuffer.prototype.sliceassertsio-tsdropnodejsroute53writableObject.fromEntriesimportawaites6real-timeredux-toolkittakeframerrequestmovethree0code pointsgetOwnPropertyDescriptorloadingmoment[[Prototype]]executablemochaprettyInt16Arrayjsonnegativerds__proto__lengthchaiArray.prototype.flatMapArrayinpromisesequalregularRxJSpicomatchlanguageefficientrgbArray.prototype.findLastIndex_.extendArray.prototype.flatbusyarraysAsyncIteratorcloudfrontflatMapwordbreaksetImmediateURLECMAScript 2021descriptionformparentsES2015regexpwaittypestdlibfast-deep-cloneArray.prototype.flattenbyteenvnopeeslintconfigfind-updragrm -frfast-copystreamdomduplexfastcloneownECMAScript 2020dircjkhooksMapES2019util.inspectelasticacheenumerabledeepwordwrapECMAScript 2018startlook-upInt8ArrayvestbindbddeventsextensionautoscalingdataviewFloat64ArrayObject.valuesconcurrencydeepcopyutilities-0tapetestroutingsuperagenthttpsfunction.lengthwhatwgreduceInt32Arrayenderentriesdom-testing-libraryjQueryperformantgroupByworkflowmatchAlloptimisttddunicodereact poseprogressgrouptypeofArrayBuffer#slicesidespeedObject.isstyleguidepositivexdg-openfolderArrayBufferrfc4122omittermcharactercommanddeepclonestylesobjectes2015bannerxtermdescriptordotenvpromisebrowserlistviewcryptolimitedArray.prototype.filterwalkES2023scheme-validationawsistanbulelbapollotypeerrorkeysRegExp#flagshelpersSetarktyperuntimelinknamesstringPushES8JSONmimetypesregular expressionsreadablestreamES6Object.assignES2017@@toStringTagmonorepoqueuesetPrototypeOfArray.prototype.includesObservablecoveragequeueMicrotaskpreserve-symlinksprivate datashamcharactersObject.entriesYAMLeditorasciiprotomergees7shebangcurlpyyamlStyleSheetsequencejsdefaultweaksetlasthasOwnPropertymimepostcss-pluginratelimitsearch256prefixroutejapaneseglobalcolorcallbindvalidationgetteranimationObject.keysdependency managermakeqsrm -rfWeakMapinstallchromiumintrinsicRegExp.prototype.flagsterminalclispawnschemarobusteslint-plugintypedarraystoArrayinternalsimple cacheReactiveXArray.prototype.containsStreamsresolveSymbolestextwhichemitidcloudtrailFunction.prototype.nameECMAScript 2019exechildrapidasyncdefinesyntaxerrorslotproxywrapsymlinkses8instrumentationicunegative zerourltyped arrayargumentavagetPrototypeOfinferenceSymbol.toStringTagjsxpathcolorscompilerargumentsmkdirpfunctionsoffsetWebSocketsUint16Arrayrequireeverycollection.es6ansitslibpruneurlses2018settingscompareopenerpipeprotocol-bufferstrimRightbundlerbluebirdESuninstallStreamvisualfixed-widthmatchesECMAScript 6immersharedexeccolumnutiljavascriptreactsymlinkflatautoprefixerfilterairbnbenvironmentslibphonenumbertrimLeftcsses-abstractgetoptenvironmentsyntaxWeakSetrmdirkoreanfunctional3dpopmotionbreakcore-jsfindLastIndexfinduphasOwnphonetoobjecteventDispatchertstimeReflect.getPrototypeOfguidTypedArrayjsdomcommanderthroatnpmfindtoolkitchinesereduceropensobjES3ECMAScript 2022pnpm9ECMAScript 3BigUint64Arraybrowserslistpackage.jsoninvariantreduxinternal slotdatastructureaccessorbatchcopyfast-clonefses2016posebyteOffsetajvzodarraybuffercall-bindfromamazonstringifyes5limitparserformsES2021pluginspring.envcloudsearchsymbolssafelocationgdpri18nIteratordescriptorsnumbertestercloudformationparentmobilePromisecolourtypesafefunctionidlevalueforEachtypedserializerredirectlistenerssharedarraybufferwgetTypeScriptObject.definePropertytypanionString.prototype.trimendpointfile cacherecursivedirectoryUint32Arraymetadatafilejson cachefetchglacierRFC-6455joijestES2020key parCSSboundcacheyamlcheckdeep-copyshrinkwraprandomttyfastifysimpledbchromebrowserMicrosoftkinesiskarmalrubuffertrimebshigher-ordersortedextendprotobufec2yuppushpropertieslaunchESnexttapswfECMAScript 7widthimportexportglobalsmkdirsnss3parsingreact-hook-formmime-dbincludesutilityconfigurablewaapiiamserializationES5performancefullwidthdayjsfullserializeassertmatches-shimsECMAScript 2017somerangeerroroptimizeriteratoreast-asian-widthawesomesaucewarningnodeoncesesmodulesvarskeyconcatjsdiffcollectiontraverseespreevalidatelinewrapUnderscorepackagespatchdebuggerthrottlemapstreamseslintpluginquerystringfpsshellcalliconvArray.prototype.findLastObjectcommand-linetoStringTagisConcatSpreadableeslintwafcensorcreatepostcsspersistentsymbolgraphqllogreact-hooksgenericsvariablesflagcolumnschannelcloneparseoutputl10nUint8ClampedArraybeanstalkdependenciesrmES2016xdgreuseworkspace:*artTypeBoxECMAScript 2016byteLengthsqsemoji
3.8.89

11 months ago

3.8.87

11 months ago

3.8.88

11 months ago

1.6.44

1 year ago

1.6.43

1 year ago

1.6.46

1 year ago

1.6.45

1 year ago

1.6.48

1 year ago

3.8.86

11 months ago

1.6.47

1 year ago

1.6.49

1 year ago

3.6.78

12 months ago

3.6.77

12 months ago

3.6.76

12 months ago

3.6.75

12 months ago

3.6.74

12 months ago

1.6.51

1 year ago

1.6.50

1 year ago

1.6.53

1 year ago

1.6.52

1 year ago

1.6.55

1 year ago

1.6.54

1 year ago

1.6.57

1 year ago

1.6.56

1 year ago

3.6.73

12 months ago

1.6.59

1 year ago

3.6.72

12 months ago

1.6.58

1 year ago

3.8.94

11 months ago

3.6.71

12 months ago

3.8.95

11 months ago

3.6.70

12 months ago

3.8.92

11 months ago

1.2.16

1 year ago

3.8.93

11 months ago

1.2.17

1 year ago

3.8.90

11 months ago

3.8.91

11 months ago

1.2.15

1 year ago

1.3.31

1 year ago

1.3.32

1 year ago

1.3.30

1 year ago

1.3.35

1 year ago

1.3.36

1 year ago

1.3.33

1 year ago

1.3.34

1 year ago

1.3.39

1 year ago

1.1.15

1 year ago

1.3.37

1 year ago

1.1.14

1 year ago

1.3.38

1 year ago

1.1.13

1 year ago

1.3.42

1 year ago

1.3.43

1 year ago

1.3.40

1 year ago

1.3.41

1 year ago

3.7.79

12 months ago

3.7.78

12 months ago

4.8.101

11 months ago

4.8.102

11 months ago

4.8.100

11 months ago

4.8.105

11 months ago

4.8.106

11 months ago

4.8.103

11 months ago

4.8.104

11 months ago

4.8.109

11 months ago

4.8.107

11 months ago

4.8.108

11 months ago

1.3.19

1 year ago

3.7.86

11 months ago

4.8.96

11 months ago

4.8.120

10 months ago

4.8.95

11 months ago

4.8.98

11 months ago

4.8.97

11 months ago

4.8.112

10 months ago

4.8.113

10 months ago

4.8.99

11 months ago

4.8.110

11 months ago

4.8.111

11 months ago

4.8.116

10 months ago

1.5.43

1 year ago

1.3.20

1 year ago

4.8.117

10 months ago

1.3.21

1 year ago

4.8.114

10 months ago

4.8.115

10 months ago

3.7.84

11 months ago

2.6.66

12 months ago

1.3.24

1 year ago

3.7.85

11 months ago

2.6.67

12 months ago

1.3.25

1 year ago

4.8.118

10 months ago

3.7.82

12 months ago

2.6.68

12 months ago

1.3.22

1 year ago

4.8.119

10 months ago

3.7.83

12 months ago

2.6.69

12 months ago

1.3.23

1 year ago

3.7.80

12 months ago

2.6.62

1 year ago

1.3.28

1 year ago

3.7.81

12 months ago

2.6.63

1 year ago

1.3.29

1 year ago

2.6.64

1 year ago

1.3.26

1 year ago

2.6.65

1 year ago

1.3.27

1 year ago

2.6.70

12 months ago

1.2.18

1 year ago

1.2.19

1 year ago

4.8.130

10 months ago

4.8.131

10 months ago

1.6.60

1 year ago

4.8.123

10 months ago

1.6.62

1 year ago

4.8.124

10 months ago

1.6.61

1 year ago

4.8.121

10 months ago

4.8.122

10 months ago

4.8.127

10 months ago

4.8.128

10 months ago

4.8.125

10 months ago

4.8.126

10 months ago

1.4.43

1 year ago

4.8.129

10 months ago

1.1.12

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

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