5.11.110 • Published 10 months ago

@patrtorg/cumque-magni v5.11.110

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

@patrtorg/cumque-magni Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2015 spec-compliant Array.prototype.values 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 spec.

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

Example

var values = require('@patrtorg/cumque-magni');
var assert = require('assert');
var iterate = require('iterate-iterator');

assert.deepStrictEqual(iterate(values([1, 2, 3])), [1, 2, 3]);
assert.deepStrictEqual(iterate(values([1, 0, 1])), [1, 0, 1]);
assert.deepStrictEqual(iterate(values([NaN])), [NaN]);
assert.deepStrictEqual(iterate(values([1,,3])), [1, undefined, 3]);
var values = require('@patrtorg/cumque-magni');
var assert = require('assert');
/* when Array#values is not present */
delete Array.prototype.values;
var shimmedMap = values.shim();
assert.deepStrictEqual(shimmedMap, values.getPolyfill());
assert.deepStrictEqual(iterate([1, 2, 3].values()), [1, 2, 3]);
assert.deepStrictEqual(iterate([1, 0, 1].values()), [1, 0, 1]);
assert.deepStrictEqual(iterate([NaN].values()), [NaN]);
assert.deepStrictEqual(iterate([1,,3].values()), [1, undefined, 3]);
var values = require('@patrtorg/cumque-magni');
var assert = require('assert');
/* when Array#values is present */
var shimmedMap = values.shim();
assert.equal(shimmedMap, Array.prototype.values);
assert.deepStrictEqual(iterate([1, 2, 3].values()), [1, 2, 3]);

Tests

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

hasOwnatombundlinges8requireacornansibundlermomentreverseworkerdescriptorskarmacolumnsconsoleObject.definePropertycircularArrayBuffer#sliceflagRegExp#flagsfantasy-landInt8ArrayprogressbinarykinesistypanionUint16Arraycallsearch__proto__TypeScriptreact poseloggerpackage.jsonperformantfunction.lengthes2018ES2023stylingtypedarrayjsxmonorepojsdomswfappfsWebSocketwebwalkespreedayjszerochaiupSymbolECMAScript 2016animationgetjson-schema-validatorchromiumairbnbentriesinstallgenericshelpersbusyttyhashcodeskoreanPushtacithas-owntakeESnextbabel-coreemrECMAScript 2020makepositivemobileoutputoptimizerzxprocessnopepnpm9dirhooksES6RxJSemitargumentrfc4122helperparserES2016minimalsymlinksvalueenderdotenvwriteYAMLglobalThishascommandrangeerrorfromhookformdataview_.extendes2016deletetelephoneelasticachedeepclonexhrdom-testing-libraryconsumeworkflowgitignorereact animationuser-streamsObservablesimportexportslotunicodeasciisource mapredux-toolkitbindurlmruprotocol-buffersES2019sortedbufferFloat32ArraycollectionconstJSON-Schemaclass-validatortrimEndmanagersyntaxerrorfolderinstallerfigletcore-jslet[[Prototype]]storagegatewaythreetoArrayESl10nexecfilerdstypeastsuperagentomitredactreact-testing-librarycssprotoemojiendpointUint8ClampedArrayES2015apollorgbES7file systemtoobjectimmutableMapECMAScript 2019react-hooksECMAScript 2015diffes2015Setremovesettingsfull-widthStreamssymbolsartBigInt64ArrayreverseddebugvestTypeBoxquoteArrayBufferregexMicrosoftmodulesfpworkspace:*matchAllFunction.prototype.nameWebSocketsdirectoryformattingcallbackjson-schemacensorenvironmentfast-deep-copyECMAScript 2022typedarraysfpstranspilermovetyped arrayweaksetfixed-widthrsswritableshellObject.isES2018stringfilterbrowserliststylereadtoStringTagArray.prototype.flattenarraynpmignorereusesafeuuidvpcefficienttypesasync
5.11.110

10 months ago

5.11.109

10 months ago

5.11.108

10 months ago

5.11.107

10 months ago

5.11.106

10 months ago

5.11.105

10 months ago

5.11.104

10 months ago

5.11.103

10 months ago

5.11.102

10 months ago

5.11.101

10 months ago

5.11.100

10 months ago

5.11.99

10 months ago

5.11.98

10 months ago

5.11.97

10 months ago

5.11.96

10 months ago

5.11.95

10 months ago

5.10.95

10 months ago

5.10.94

10 months ago

5.10.93

10 months ago

5.9.93

10 months ago

5.9.92

11 months ago

5.9.91

11 months ago

5.8.91

11 months ago

5.8.90

11 months ago

5.8.89

11 months ago

5.8.88

11 months ago

5.8.87

11 months ago

5.8.86

11 months ago

5.8.85

11 months ago

4.8.85

11 months ago

4.8.84

11 months ago

4.8.83

11 months ago

3.8.83

11 months ago

3.8.82

11 months ago

3.8.81

11 months ago

3.8.80

11 months ago

3.8.79

11 months ago

3.7.79

11 months ago

3.7.78

11 months ago

3.7.77

11 months ago

3.7.76

11 months ago

3.7.75

11 months ago

3.7.74

11 months ago

3.7.73

11 months ago

2.7.73

11 months ago

2.7.72

11 months ago

2.7.71

11 months ago

2.7.70

11 months ago

2.6.70

11 months ago

2.6.69

11 months ago

2.6.68

12 months ago

2.6.67

12 months ago

2.6.66

12 months ago

2.6.65

12 months ago

2.6.64

12 months ago

2.6.63

12 months ago

2.6.62

12 months ago

2.6.61

12 months ago

2.6.60

12 months ago

2.6.59

12 months ago

2.6.58

12 months ago

2.6.57

12 months ago

2.6.56

12 months ago

2.6.55

12 months ago

2.6.54

12 months ago

2.6.53

12 months ago

2.6.52

12 months ago

2.6.51

12 months ago

2.6.50

12 months ago

2.6.49

12 months ago

2.6.48

1 year ago

2.6.47

1 year ago

2.6.46

1 year ago

2.5.46

1 year ago

2.5.45

1 year ago

1.5.45

1 year ago

1.5.44

1 year ago

1.5.43

1 year ago

1.5.42

1 year ago

1.5.41

1 year ago

1.5.40

1 year ago

1.5.39

1 year ago

1.4.39

1 year ago

1.4.38

1 year ago

1.4.37

1 year ago

1.4.36

1 year ago

1.4.35

1 year ago

1.4.34

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.3.25

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

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.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago