3.13.112 • Published 10 months ago

@erboladaiorg/vitae-voluptas-consectetur v3.13.112

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

@erboladaiorg/vitae-voluptas-consectetur Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Example

var map = require('@erboladaiorg/vitae-voluptas-consectetur');
var assert = require('assert');

assert.deepEqual(map([1, 1, 1], function (x) { return x + 1; }), [2, 2, 2]);
assert.deepEqual(map([1, 0, 1], function (x) { return x + 1; }), [2, 1, 2]);
var map = require('@erboladaiorg/vitae-voluptas-consectetur');
var assert = require('assert');
/* when Array#map is not present */
delete Array.prototype.map;
var shimmedMap = map.shim();
assert.equal(shimmedMap, map.getPolyfill());
var arr = [1, 2, 3];
var add4 = function (x) { return x + 4; };
assert.deepEqual(arr.map(add4), map(arr, add4));
var map = require('@erboladaiorg/vitae-voluptas-consectetur');
var assert = require('assert');
/* when Array#map is present */
var shimmedMap = map.shim();
assert.equal(shimmedMap, Array.prototype.map);
assert.deepEqual(arr.map(add4), map(arr, add4));

Tests

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

deepcloneFloat32ArrayjsdomoptimizerimportformsObject.isserializersameValueZeroexecfolderregularisUint8ArrayformestreecloudfrontArray.prototype.flattenimmeragenthas-ownString.prototype.matchAlllibphonenumbermkdires-shimshelperPromisedescriptorsapijavascriptes2016mkdirsrmdirio-tsawaitdatevisualReflect.getPrototypeOfswfdefinelimitedparseruninstallduplexmimetypesdeep-clonepushESnextwhatwgdebugextensioncollection.es6onceserializationsomespeedsnsgetPrototypeOfbrowserlistJSON-Schemaclonefind-upinternal_.extendbddObservablesloadbalancingrm -rfdiffmatchestoArrayRxJSutil.inspectES8schemaimmutablemulti-packageopenerfastifythrottleenvsuperstructreact-hook-formairbnbES2015[[Prototype]]typescriptvarsBigInt64Arrayiamrm -frpyyamlwalkingES2020symlinksECMAScript 2020pnpm9processcopyiterateInt32Arrayreact poseeast-asian-widthformatdefinePropertyECMAScript 3mime-dbcall-bindfpseslintpluginlogginggdprWebSocketi18nfetchjQueryfinduptc39unicodeidleInt16Arraycall-boundkarmatesterargumentlinkES2019whichqslistenerssyntaxlogappsetPrototypeOfstructuredClonemochastdlibcloudwatchhassimple cacheloggeruprangeerrors3environmentexepromisesopenfast-deep-copysortedURLprotocol-buffersarktypehelpersbreakrobustcloudtrailartcommandercompilerfunctionshebangconfigurablerateparentArray.prototype.findLastIndexregular expressionsexecutablehttpES2023dragworkerregexkey parconsoledeletenodejscirculares6String.prototype.trimJSONsettingsopenseslint-pluginparentsmonorepoworkspace:*256mimepreserve-symlinksperformancemakevpcmatchESkeyqueueMicrotasktestingboundchromiumObservablesortbundlerspawnregular expressionWeakMapspinnerprefixsyntaxerroroptionArray.prototype.findLastHyBieslintcssMicrosoftes2018sesassertsequalityfull-widthes5setImmediateminimalES6Float64Arrayes2017enderiterationmatchAllremoveSymbol.toStringTagjshintschemexdg-openWeakSetiejasminecallbindtoobjectwebsitetypeofdataviewbyteLengthwritableObject.definePropertycolumnesfullfunctionsglobalsassertionecmascriptwidthlazyRxrmECMAScript 2022joiArrayBuffer#sliceelasticachesideroutingstreams2CSStypeerrorECMAScript 2016ECMAScript 2023findLastcoercibleUint8ClampedArraydeep-copytoStringTagtyped arraywriteprettysqsintrinsicbyteeventDispatchergetOwnPropertyDescriptorfasthookformdatastructuremergebluebirdcurlArray.prototype.flatMapslicedotenvresolveutilitiespersistentreact-testing-libraryglobtoolsYAMLspinnersweaksetperformantpluginObject.getPrototypeOferrornopelook-upMapBigUint64Array@@toStringTagarraysgetintrinsicistanbulzerodescriptionrfc4122phoneIteratoryamlpositivelanguagereact-hooksdependenciesES3ReactiveExtensionsmomentparsingtypesafescheme-validationweakmapcreatetrimStartArray.prototype.containsPushRegExp.prototype.flagsspringcharacterstapedayjsdebuggerlast
dable-effectfiran-loggingcorcojs-qrcodecorcojs-qrcode-logosimple-prompts-web3analsorhost-simple-bssimple-assi-animation@juigorg/sit-nam-neque@juigorg/nisi-molestiae-ut@kollorg/dicta-itaque-nemo@erboladaiorg/error-atque-ea@erboladaiorg/nisi-culpa-cum@erboladaiorg/quae-in-veniam@dramaorg/quae-dolore-nostrum@erboladaiorg/ex-hic-molestias@kollorg/nihil-veniam-deserunt@erboladaiorg/esse-ipsa-numquam@erboladaiorg/sit-nesciunt-amet@erboladaiorg/velit-fugit-harum@zitterorg/eum-veritatis-placeat@erboladaiorg/autem-dolores-ipsam@erboladaiorg/asperiores-fuga-sint@erboladaiorg/quod-explicabo-neque@swenkerorg/modi-dolorum-provident@dramaorg/esse-praesentium-eligendi@erboladaiorg/molestias-nulla-dolor@erboladaiorg/officia-illum-aperiam@erboladaiorg/perspiciatis-magni-ut@erboladaiorg/sint-deleniti-dolorem@erboladaiorg/ut-dignissimos-laborum@erboladaiorg/asperiores-nam-adipisci@erboladaiorg/cum-commodi-consequatur@erboladaiorg/distinctio-tempora-quis@erboladaiorg/explicabo-eius-adipisci@erboladaiorg/asperiores-earum-quaerat@erboladaiorg/fugiat-nobis-repellendus@erboladaiorg/quibusdam-itaque-tempora@erboladaiorg/ad-exercitationem-ducimus@erboladaiorg/cupiditate-pariatur-optio@erboladaiorg/quaerat-mollitia-adipisci@erboladaiorg/tenetur-architecto-dolore@swenkerorg/nulla-voluptates-voluptates@erboladaiorg/laboriosam-inventore-natus@zitterorg/aspernatur-pariatur-occaecati@zitterorg/illum-perferendis-consectetur@erboladaiorg/cupiditate-consectetur-porro@erboladaiorg/adipisci-repellendus-corporis@erboladaiorg/molestiae-voluptatibus-perferendis
3.7.38

1 year ago

3.10.97

11 months ago

3.10.98

11 months ago

3.13.109

10 months ago

3.10.95

11 months ago

3.10.96

11 months ago

3.10.99

11 months ago

3.7.39

1 year ago

3.10.94

11 months ago

3.8.83

12 months ago

2.3.22

1 year ago

3.8.84

11 months ago

3.13.110

10 months ago

3.8.81

12 months ago

3.11.104

11 months ago

3.8.82

12 months ago

3.11.103

11 months ago

3.8.80

12 months ago

3.7.48

1 year ago

3.7.49

1 year ago

3.13.112

10 months ago

3.7.46

1 year ago

3.13.111

10 months ago

3.7.47

1 year ago

3.7.44

1 year ago

3.7.45

1 year ago

3.7.42

1 year ago

3.7.43

1 year ago

2.1.16

1 year ago

2.1.17

1 year ago

2.1.14

1 year ago

2.1.15

1 year ago

2.1.12

1 year ago

2.1.13

1 year ago

3.7.40

1 year ago

3.7.41

1 year ago

3.4.25

1 year ago

3.4.26

1 year ago

3.8.69

12 months ago

3.4.27

1 year ago

3.4.28

1 year ago

3.8.67

12 months ago

3.4.29

1 year ago

3.8.68

12 months ago

3.8.65

12 months ago

3.8.66

12 months ago

3.4.22

1 year ago

3.4.23

1 year ago

3.4.24

1 year ago

3.8.63

1 year ago

3.8.64

12 months ago

3.8.61

1 year ago

3.8.62

1 year ago

3.8.60

1 year ago

3.8.78

12 months ago

3.8.79

12 months ago

3.8.76

12 months ago

3.8.77

12 months ago

3.4.30

1 year ago

3.4.31

1 year ago

3.8.74

12 months ago

3.8.75

12 months ago

3.8.72

12 months ago

3.8.73

12 months ago

3.8.70

12 months ago

3.8.71

12 months ago

2.2.17

1 year ago

3.9.90

11 months ago

2.2.18

1 year ago

3.12.104

11 months ago

3.12.106

11 months ago

3.12.105

11 months ago

3.12.108

11 months ago

3.12.107

11 months ago

3.12.109

11 months ago

3.9.93

11 months ago

3.9.94

11 months ago

3.9.91

11 months ago

3.9.92

11 months ago

3.6.37

1 year ago

3.6.36

1 year ago

3.8.58

1 year ago

3.6.35

1 year ago

3.8.59

1 year ago

3.6.34

1 year ago

3.8.56

1 year ago

3.6.33

1 year ago

3.8.57

1 year ago

3.8.54

1 year ago

3.8.55

1 year ago

3.10.103

11 months ago

2.2.19

1 year ago

3.6.38

1 year ago

2.2.22

1 year ago

3.8.52

1 year ago

2.2.20

1 year ago

3.8.53

1 year ago

2.2.21

1 year ago

3.5.33

1 year ago

3.5.32

1 year ago

3.5.31

1 year ago

3.10.100

11 months ago

3.10.102

11 months ago

3.10.101

11 months ago

3.7.51

1 year ago

3.7.52

1 year ago

3.7.50

1 year ago

3.9.88

11 months ago

3.9.89

11 months ago

3.3.22

1 year ago

3.9.86

11 months ago

3.9.87

11 months ago

3.9.84

11 months ago

3.9.85

11 months ago

2.1.11

1 year ago

2.1.9

1 year ago

1.1.8

1 year ago

2.1.10

1 year ago

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