7.4.99 • Published 8 months ago

@taktikorg/reiciendis-illum v7.4.99

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

@taktikorg/reiciendis-illum Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

browser support

An ES5 spec-compliant Array.prototype.every 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.every depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.

Example

var every = require('@taktikorg/reiciendis-illum');
var assert = require('assert');

assert.equal(true, every([1, 1, 1], function (x) { return x === 1; }));
assert.equal(false, every([1, 0, 1], function (x) { return x === 1; }));
var every = require('@taktikorg/reiciendis-illum');
var assert = require('assert');
/* when Array#every is not present */
delete Array.prototype.every;
var shimmedEvery = every.shim();
assert.equal(shimmedEvery, every.getPolyfill());
var arr = [1, 2, 3];
var lessThan4 = function (x) { return x < 4; };
assert.deepEqual(arr.every(lessThan4), every(arr, lessThan4));
var every = require('@taktikorg/reiciendis-illum');
var assert = require('assert');
/* when Array#every is present */
var shimmedEvery = every.shim();
assert.equal(shimmedEvery, Array.prototype.every);
assert.deepEqual(arr.every(lessThan4), every(arr, lessThan4));

Tests

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

hasexpressviewparseESObject.definePropertydataviewArray.prototype.flattenfast-deep-copycall-bindcomparelockfilees-abstractESnextsimpledbharmonyglobalspinojsdomdotenvutildescriptionFloat32ArrayjavascripthookstrimRightrecursiveasciiwaapiSystem.globalforEachconstArray.prototype.filterquotereadablestreamautoscalingclassnamesregular expressionprocess[[Prototype]]ES2020RegExp.prototype.flagsES2022styled-componentsemit__proto__JSONtoArrayhttpsreduxdomvestinstallunicodeprivateterminalcolorsmkdirpistanbulomittoolkititeratejshinthookformclassnamespawncore-jsparentses2017sidemkdirsansihigher-ordercacheObject.isoncefindguidwhichendpointform-validationelectronfindLastIndexquerybindtddtoobjectairbnbgitignoretaperegular-expressionpackage.jsoncloudfrontimportexportdateflattensestimedayjstypedxmlinstallercloudwatchArrayBuffer.prototype.slicejestString.prototype.trimnegativemulti-packageflagArray.prototype.flatMapArray.prototype.includeslibphonenumbersuperstructhas-ownfunctionrandomredirectlruartMapeslintpluginprettyURLserializerestinvariantanimationutilityinternal slotrsstrimEndzeroargsmoveCSSinhasOwnPropertyeventDispatchercheckfetchfullwidthramdafastcloneapijsonrequireframer.envnumberUint8ClampedArraysymlinkstostringtaghashbyteLengthflatMapenvlocationdeepclonereact-hooksJSON-SchemaconcatMapcssrestfulrmreworkECMAScriptcurriedtslibbinarymanipulationequalentrieszxglobalThisspinnerWeakSetcolourcensorshelllengthtoStringTagfast-copyiteratores5global objectwhatwgassertionsubprocessaccessorArray.prototype.findLastIndexprotobufcallboundsharedarraybuffervaluesqueuea11yrouterconsolezodRxgetintrinsicarrayBigInt64ArrayfromECMAScript 2017chromeArrayBuffer#slicefastifyerrortypeswritabletypecircularserializerwidthes8256folderWebSocketjoicontainsES3react posedescriptorSymbolrouteredactagentworkspace:*setter$.extendarktypepolyfillUint32Arrayloadbalancinges-shim APIpipemkdircall-boundES7find-upeslint-pluginmoduletoReversedavastreamsatomlocalreducerpyyamloffsetES2019ES6YAMLpushelbreal-timeconcatnpmignoretraversephonegesturesshebangaccessibilityswfcjkescapeignorerfc4122loggerformattingdirfullvarqueueMicrotasksource mapidlequerystringschemaajaxtransportES2016validatorlistenerstrimvalidationreusenpmimportcreateprogressserializationdefinespringglacierbundlingvarsbytepopmotionthreeparsertesttoSortedmergereactdeepuninstallstructuredClonees6full-widthincludesECMAScript 2018fpscollectionexpressionuuidsharedintrinsiccompilereveryreversejson-schemapnpm9filecurlletimmutablesuperagentjsonschemaclientkoreanbabelFunction.prototype.namepackage managercloudtrailtypescriptoutputregexpconsumeidsafesymbolxtermhtmlprefixttypropertieseast-asian-widthestreeURLSearchParamsES2015pathassertsglobal this valuefigletsyntaxerrorsinatrarulesrm -frES5colorInt8Arrayargumentrangeerrorstyleguidefile systemjapaneseES2023syntaxfpeslintestacitisConcatSpreadableclass-validatorFloat64Arrayassignpropmakecommand-lineponyfillfilterArray.prototype.flatchildresolvekeysframeworkstringifypurejQueryrm -rfasterisksformwalkkeyisregularECMAScript 5visualdynamodbpackagesECMAScript 7reversedflagsfast-clonePushqsstringifierECMAScript 2023namecoercibleslicevaluetypedarraysformsinstrumentationpostcss-pluginio-tses2015datatesterapollogettereffect-tscolumnsES2021iamlogpoint-freel10nwalkingReflect.getPrototypeOfECMAScript 6transpilerstreambabel-coreRxJStouchObjectobjrobusttransformfantasy-landoptimistgroupIteratorArray.prototype.findLastsetImmediateArraycommandregexcryptoObject.valuesenvironmentsbusyeventsES8getPrototypeOfreadableECMAScript 3textstableproxysqsclasses@@toStringTagRFC-6455configdroparraybufferforkpackagemapreducestylesymbolsSymbol.toStringTagArrayBufferchannelECMAScript 2019astcharacterslotmonoreporoute53pluginfixed-widthECMAScript 2021binarieswrite3dStyleSheetbyteOffsetstylesRegExp#flagsflatnoperoutingObservablesreduceyupReactiveExtensionsreact-hook-formcalloptimizerebsperformantWebSocketssomepreprocessorexecuteformatwafcorestringObject.assignperformancexhrshrinkwrapfastextendinspectargvsnstyped arraybufferpatchhttpdependency managerextradom-testing-libraryfastcopyglobalTypeScriptgraphqltypeofclonehelpersenvironmentgroupByECMAScript 2022.gitignoremomentconfigurablebinspecpromisemodulesbufferscopynegative zeroamazonObservablestarterSetdataViewregular expressionsinternalvpccallbackajvfindupyamlES2017collection.es6nativedependenciesECMAScript 2020feedjsxieshimprivate datargbes7lastsameValueZerodeepcopyappprototypetestingnamespositivebdddeep-clonevalidStreamssettingscomputed-typesECMAScript 2016mapdirectoryremovebeanstalkec2
7.4.99

8 months ago

7.4.98

8 months ago

7.4.97

8 months ago

7.4.96

8 months ago

7.4.95

8 months ago

7.4.94

8 months ago

7.4.93

8 months ago

7.4.92

8 months ago

7.4.91

8 months ago

7.4.90

8 months ago

7.3.90

8 months ago

7.3.89

8 months ago

7.3.88

8 months ago

7.3.87

8 months ago

7.3.86

8 months ago

7.3.85

8 months ago

7.3.84

8 months ago

7.3.83

8 months ago

7.3.82

8 months ago

7.3.81

8 months ago

7.3.80

8 months ago

7.3.79

8 months ago

7.3.78

8 months ago

7.3.77

8 months ago

7.3.76

8 months ago

7.3.75

8 months ago

7.3.74

9 months ago

7.3.73

9 months ago

7.3.72

9 months ago

7.3.71

9 months ago

7.3.70

9 months ago

7.3.69

9 months ago

7.3.68

9 months ago

7.3.67

9 months ago

7.3.66

9 months ago

7.3.65

9 months ago

7.3.64

9 months ago

7.3.63

9 months ago

7.3.62

9 months ago

7.3.61

9 months ago

7.2.61

9 months ago

7.2.60

9 months ago

7.2.59

9 months ago

7.2.58

9 months ago

6.2.58

9 months ago

6.2.57

9 months ago

6.2.56

9 months ago

6.2.55

9 months ago

6.2.54

9 months ago

6.2.53

9 months ago

6.1.53

9 months ago

6.1.52

9 months ago

6.1.51

9 months ago

6.1.50

9 months ago

6.1.49

9 months ago

6.1.48

9 months ago

6.1.47

10 months ago

6.1.46

10 months ago

6.1.45

10 months ago

6.1.44

10 months ago

6.1.43

10 months ago

6.1.42

10 months ago

6.1.41

10 months ago

6.1.40

10 months ago

5.1.40

10 months ago

5.1.39

10 months ago

5.1.38

10 months ago

5.1.37

10 months ago

5.1.36

10 months ago

5.1.35

10 months ago

5.1.34

10 months ago

5.1.33

10 months ago

5.1.32

10 months ago

5.1.31

10 months ago

5.0.31

10 months ago

5.0.30

10 months ago

5.0.29

10 months ago

5.0.28

10 months ago

5.0.27

10 months ago

5.0.26

10 months ago

5.0.25

10 months ago

5.0.24

10 months ago

5.0.23

10 months ago

5.0.22

10 months ago

5.0.21

10 months ago

5.0.20

10 months ago

5.0.19

11 months ago

5.0.18

11 months ago

5.0.17

11 months ago

5.0.16

11 months ago

5.0.15

11 months ago

5.0.14

11 months ago

5.0.13

11 months ago

5.0.12

11 months ago

4.0.12

11 months ago

4.0.11

11 months ago

4.0.10

11 months ago

4.0.9

11 months ago

3.0.9

11 months ago

3.0.8

11 months ago

2.0.8

11 months ago

2.0.7

11 months ago

2.0.6

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago