7.4.99 • Published 2 years ago

@taktikorg/reiciendis-illum v7.4.99

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

2 years ago

7.4.98

2 years ago

7.4.97

2 years ago

7.4.96

2 years ago

7.4.95

2 years ago

7.4.94

2 years ago

7.4.93

2 years ago

7.4.92

2 years ago

7.4.91

2 years ago

7.4.90

2 years ago

7.3.90

2 years ago

7.3.89

2 years ago

7.3.88

2 years ago

7.3.87

2 years ago

7.3.86

2 years ago

7.3.85

2 years ago

7.3.84

2 years ago

7.3.83

2 years ago

7.3.82

2 years ago

7.3.81

2 years ago

7.3.80

2 years ago

7.3.79

2 years ago

7.3.78

2 years ago

7.3.77

2 years ago

7.3.76

2 years ago

7.3.75

2 years ago

7.3.74

2 years ago

7.3.73

2 years ago

7.3.72

2 years ago

7.3.71

2 years ago

7.3.70

2 years ago

7.3.69

2 years ago

7.3.68

2 years ago

7.3.67

2 years ago

7.3.66

2 years ago

7.3.65

2 years ago

7.3.64

2 years ago

7.3.63

2 years ago

7.3.62

2 years ago

7.3.61

2 years ago

7.2.61

2 years ago

7.2.60

2 years ago

7.2.59

2 years ago

7.2.58

2 years ago

6.2.58

2 years ago

6.2.57

2 years ago

6.2.56

2 years ago

6.2.55

2 years ago

6.2.54

2 years ago

6.2.53

2 years ago

6.1.53

2 years ago

6.1.52

2 years ago

6.1.51

2 years ago

6.1.50

2 years ago

6.1.49

2 years ago

6.1.48

2 years ago

6.1.47

2 years ago

6.1.46

2 years ago

6.1.45

2 years ago

6.1.44

2 years ago

6.1.43

2 years ago

6.1.42

2 years ago

6.1.41

2 years ago

6.1.40

2 years ago

5.1.40

2 years ago

5.1.39

2 years ago

5.1.38

2 years ago

5.1.37

2 years ago

5.1.36

2 years ago

5.1.35

2 years ago

5.1.34

2 years ago

5.1.33

2 years ago

5.1.32

2 years ago

5.1.31

2 years ago

5.0.31

2 years ago

5.0.30

2 years ago

5.0.29

2 years ago

5.0.28

2 years ago

5.0.27

2 years ago

5.0.26

2 years ago

5.0.25

2 years ago

5.0.24

2 years ago

5.0.23

2 years ago

5.0.22

2 years ago

5.0.21

2 years ago

5.0.20

2 years ago

5.0.19

2 years ago

5.0.18

2 years ago

5.0.17

2 years ago

5.0.16

2 years ago

5.0.15

2 years ago

5.0.14

2 years ago

5.0.13

2 years ago

5.0.12

2 years ago

4.0.12

2 years ago

4.0.11

2 years ago

4.0.10

2 years ago

4.0.9

2 years ago

3.0.9

2 years ago

3.0.8

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago