4.6.115 • Published 10 months ago

@diotoborg/laboriosam-eos v4.6.115

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

@diotoborg/laboriosam-eos Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Example

var copyWithin = require('@diotoborg/laboriosam-eos');
var assert = require('assert');

var arr = [1, 2, 3, 4, 5];
assert.deepEqual(copyWithin(arr, 0, 3), [4, 5, 3, 4, 5]);
assert.deepEqual(arr, [4, 5, 3, 4, 5]);
var copyWithin = require('@diotoborg/laboriosam-eos');
var assert = require('assert');
/* when Array#copyWithin is not present */
delete Array.prototype.copyWithin;
var shimmedCopyWithin = copyWithin.shim();
assert.deepStrictEqual(shimmedCopyWithin, copyWithin.getPolyfill());

var arr = [1, 2, 3, 4, 5];
assert.deepEqual(copyWithin(arr, 0, 3), [4, 5, 3, 4, 5]);
assert.deepEqual(arr, [4, 5, 3, 4, 5]);
var copyWithin = require('@diotoborg/laboriosam-eos');
var assert = require('assert');
/* when Array#copyWithin is present */
var shimmedCopyWithin = copyWithin.shim();
assert.equal(shimmedCopyWithin, Array.prototype.copyWithin);

var arr = [1, 2, 3, 4, 5];
assert.deepEqual(copyWithin(arr, 0, 3), [4, 5, 3, 4, 5]);
assert.deepEqual(arr, [4, 5, 3, 4, 5]);

Tests

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

dragishasOwnposeconstelbrandomdiffponyfillmetadatadataObject.keysreduxPromiseremovefastimmutablestylessettingsintrinsicspawn6to5l10nworkertypedarrayStreamsconfigurablepurevarRxfnmatchyamlpolyfillrequirewalkingsyntaxerror@@toStringTagECMAScript 2016apipackage managerhascallbounddeterministicArray.prototype.containses7color3dboundutilslocationWebSocketsfiletacitebsArray.prototype.flatMaprm -frclonetextObject.valuesbinaryfunction.lengthprotocol-buffersglobalThisaccessibilityinspecteventsunicodecssglobalqueryutilitiesec2higher-ordertypetouchcollectionacornbufferMicrosoftistanbulwidthpropharmonyrm -rfcolourpatchdeepclonelook-up_.extendwhatwgtypesclassnamesredactvalidtaketscheckcloudfronttc39browserslistPushcore-jsfunctionalmake dirgetPrototypeOfargsfast-cloneenvsymlinksxmlgesturescommanderendpointpusheffect-tsmoduleloadbalancingrdsformstarteridentifierscallbackjsonjasminewebfunctiontypescriptastxtermruntimepruneSetomiteventDispatcherfastcopyArray.prototype.includesarktypeES2019argvgdprURLupnameseventEmitterlinkperformancehashregexpostcss-pluginstringifycloudwatchidleECMAScript 2017tapenpmignoresqsWeakSeturlvarsstringspecamazonrecursivetimereuseregularframeworkrgbsortedECMAScript 2021ownxhr256ArrayBuffer#slicedirRxJSpluginvalidatorUint8ClampedArrayformstyped arrayhooksfromhardlinks0descriptorparentmocharouterECMAScript 2020jsonschemaserializefindLastIndexES3class-validatorgraphqlreact-hook-form$.extendwindowfull-widthnumberidtoolkitsubprocesspinoestreeshrinkwrapsyntaxwhichasynccall-bindwgeteslintpluginstreamsObservableArray.prototype.flatsharedslotiemapBigUint64ArraywaitECMAScript 2015dropkeyfetchcreategroupBybddtypesafeapollomatchredux-toolkitYAML__proto__workflowreworkObject.assigncloudsearches5Float64Arraypyyamlfpssymboles2017progressECMAScript 5agentanimationtoStringTagcoretermtypeerrorString.prototype.trimESnextES7validationchinesewaapijestpathflattenpositivefilterspinnercallbindchaiinstrumentationhas-ownsesmodulesavaphonedeep-clonestoragegatewayTypedArrayhtmlRegExp#flagsinstallbinvariableslockfileformattestcensorrangeerrortestingObject.definePropertybabel-coreclientArray.prototype.filterlistenersmergeredirectreducemonorepoecmascriptoutputmapreducepackage.jsongitignoreReactiveExtensionsfastclonecolumnsimportlintstreampackageelasticacheprocessequalitydateramdaserializerArray.prototype.findLastbyteOffseti18nvestshebangawesomesauceTypeScriptsimpledbimmerresolveform-validationequalweakmapprivate datalookes-shimsvisualJSON-Schemasource mapECMAScript 2023figletURLSearchParamsfullwidthmkdirregular expressionsinatra.gitignoremomentimportexportdefinePropertyjsdomsearches-shim APIqsArrayBuffercss-in-jsSymbolschemeappjson-schema-validatorStreamfindupdependency managermkdirsutilityexpressjsdayjstypanionmkdirpsnscompilerFloat32ArrayfpprettyIteratorfast-deep-clone[[Prototype]]ECMAScriptrestfulyupvalidatepicomatchmatchescharactersmobileObservablesoptionemitutilES2020weaksetESfast-copyprotoObject.entriescurlinputcachechannelgetopt
4.5.115

10 months ago

4.6.115

10 months ago

4.5.114

10 months ago

4.5.113

10 months ago

4.5.112

10 months ago

4.5.111

10 months ago

4.5.110

10 months ago

4.5.109

10 months ago

4.4.109

10 months ago

4.4.108

10 months ago

4.4.107

10 months ago

4.4.106

10 months ago

4.4.105

10 months ago

4.4.104

10 months ago

4.4.103

10 months ago

4.4.102

10 months ago

4.4.101

10 months ago

4.4.100

10 months ago

4.4.99

10 months ago

4.4.98

10 months ago

4.4.97

10 months ago

4.4.96

11 months ago

4.4.95

11 months ago

4.4.94

11 months ago

4.4.93

11 months ago

4.4.92

11 months ago

4.4.91

11 months ago

4.4.90

11 months ago

4.4.89

11 months ago

4.4.88

11 months ago

4.4.87

11 months ago

4.4.86

11 months ago

4.4.85

11 months ago

4.3.85

11 months ago

4.3.84

11 months ago

4.3.83

11 months ago

4.3.82

11 months ago

4.3.81

11 months ago

4.3.80

11 months ago

4.3.79

11 months ago

4.3.78

11 months ago

4.3.77

11 months ago

4.3.76

11 months ago

4.3.75

11 months ago

4.3.74

11 months ago

4.3.73

11 months ago

4.3.72

11 months ago

4.3.71

11 months ago

4.3.70

11 months ago

3.3.70

11 months ago

3.3.69

11 months ago

3.3.68

12 months ago

3.3.67

12 months ago

3.3.66

12 months ago

3.3.65

12 months ago

3.3.64

12 months ago

3.2.64

12 months ago

3.2.63

12 months ago

2.2.63

12 months ago

2.2.62

12 months ago

2.2.61

12 months ago

2.2.60

12 months ago

2.2.59

12 months ago

2.2.58

12 months ago

2.2.57

12 months ago

2.2.56

12 months ago

2.2.55

12 months ago

2.2.54

12 months ago

2.2.53

12 months ago

2.2.52

12 months ago

2.2.51

12 months ago

2.2.50

1 year ago

2.2.49

1 year ago

2.2.48

1 year ago

2.2.47

1 year ago

2.2.46

1 year ago

2.2.45

1 year ago

2.2.44

1 year ago

2.2.43

1 year ago

2.2.42

1 year ago

2.2.41

1 year ago

2.2.40

1 year ago

2.2.39

1 year ago

2.2.38

1 year ago

2.2.37

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

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