5.10.86 • Published 5 months ago

@dramaorg/voluptate-quo-atque v5.10.86

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

@dramaorg/voluptate-quo-atque Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Engines where this is needed

Note: this list is not exhaustive.

  • Safari 10 - 13
  • Chrome 48+ (v8 bug)
  • node 6+

Example

var slice = require('@dramaorg/voluptate-quo-atque');
var assert = require('assert');

var a = [1, 2, 3];
assert.deepEqual(slice(a, 1, 2), [2]);
assert.deepEqual(slice(a, -2), [2, 3]);
var slice = require('@dramaorg/voluptate-quo-atque');
var assert = require('assert');
/* when Array#slice is not present */
delete Array.prototype.slice;
var shimmed = slice.shim();
assert.equal(shimmed, slice.getPolyfill());
assert.equal(shimmed, Array.prototype.slice);
assert.deepEqual([1, 2, 3].slice(1, 2), slice([1, 2, 3], 1, 2));
var slice = require('@dramaorg/voluptate-quo-atque');
var assert = require('assert');
/* when Array#slice is present */
var shimmed = slice.shim();
assert.equal(shimmed, Array.prototype.slice);
assert.deepEqual([1, 2, 3].slice(1, 2), slice([1, 2, 3], 1, 2));

Tests

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

sameValueZeroawesomesaucecallaccessibilityeventDispatcheres8filterprotostructuredClonedefinemetadatapositiveratelimitlimitedroutingloggingstringifierstarterlocationtelephoneObject.valuespromisescloudformationidlees-shim APIRxasciideepcommand-linetermclassnameassertsES6variables in cssprunesetImmediatewgetawses-abstractfast-deep-cloneconfigarraysbundler$.extendECMAScript 3workspace:*styleswalkRegExp.prototype.flagsless.jsxhrECMAScript 2017byteLengthisextenditeratorglobrequireemitrm -frpolyfillcode pointscloneconfigurablemruwaitStyleSheetqueueMicrotaskcliReflect.getPrototypeOfString.prototype.matchAllbeanstalkpushsymbolsjoistableprogressES8definePropertyserializationcallboundquoteUint8ClampedArraybuffersvalidomitInt32ArrayArraysomees2018collection.es6nameownnegativeloggersnsMapjasmineformatjssharedJSON-SchemaschemadirsharedarraybufferrmencryptionlimittrimnodejsPromiselesscssbannerauthenticationcachepostcsschineseinferenceflagfunctionstostringtagpackagesdeepclonegroupcommandObject.getPrototypeOfECMAScript 5toolssidetoStringTagtslibcoercibles3datamochaargsairbnbes2015bootstrap cssfluxexpressyupObject.ismapreducelistenersio-tsless mixinsfixed-widthAsyncIteratorproxyjsonsettermoduleeventsreducerkarmashimSymbol.toStringTagoffsetpackage managerfastprefixwhichidredactroutedebugmatchesECMAScript 2020zeroFloat32ArrayfastcopytypaniongroupBylinkdependency managerES2020styled-componentsparsingform-validationqueuestylesheetzodimportkinesisconcatMapreduxcsserrorbatchdeletefastifyObjectparsefindLaststoragegateway[[Prototype]]fastclonees-shimstyped arraymimetypestaskFloat64ArrayArray.prototype.filterflattenapolloWebSocketESnextPushwrapfilepropslicekeypackage.jsonflatMapdeterministicES7figletimmerfullECMAScript 2018variablesWeakSetcolumnfpschaiprivate datarmdirlogsetPrototypeOfjapanesespinnersfsES2019schemecjkratereducecommanderdescriptionstylingECMAScript 2022languagenumberhashbcryptstyleviewspinnerjsdiffiterationArrayBuffer.prototype.slicefunctionalweakmapArray.prototype.flatlazyespreewatchES3emojicensorflattypeswatchingES5ec2ECMAScript 2023charactersbootstrap lesswatcherless cssHyBi@@toStringTagclientchannelurlcreateshellchromiumutilityfunctionframeworkmomentperformantredirectajves7utiltoolkitECMAScript 7containsES2022requestes6pipebrowserlisthttplockfilegradients cssdescriptorsajaxtsredux-toolkitstreamsjestweaksetunicodecurlgraphqlhasOwnPropertyclassnameslivecss-in-jseveryformattingupsuperstructhasOwncloudsearchchromeWebSocketsReactiveExtensionsjwtbddintrinsic
5.9.80

5 months ago

5.9.75

6 months ago

5.9.76

6 months ago

5.10.81

5 months ago

5.9.77

6 months ago

5.10.80

5 months ago

5.9.78

6 months ago

5.9.71

6 months ago

5.9.72

6 months ago

5.9.73

6 months ago

5.9.74

6 months ago

5.9.70

6 months ago

4.6.37

7 months ago

4.6.38

7 months ago

4.6.36

7 months ago

5.10.86

5 months ago

5.10.83

5 months ago

5.9.79

5 months ago

5.10.82

5 months ago

5.10.85

5 months ago

5.10.84

5 months ago

5.9.64

6 months ago

5.9.65

6 months ago

5.9.66

6 months ago

5.9.67

6 months ago

5.9.60

6 months ago

5.9.61

6 months ago

5.9.62

6 months ago

5.9.63

6 months ago

4.9.51

6 months ago

4.9.50

6 months ago

4.9.53

6 months ago

4.9.52

6 months ago

4.9.55

6 months ago

4.9.54

6 months ago

4.9.57

6 months ago

4.9.56

6 months ago

4.9.59

6 months ago

4.9.58

6 months ago

4.7.38

7 months ago

5.9.68

6 months ago

5.9.69

6 months ago

4.9.42

7 months ago

4.9.44

7 months ago

4.9.43

7 months ago

4.9.46

7 months ago

4.4.32

7 months ago

4.9.45

7 months ago

4.9.48

7 months ago

4.9.47

7 months ago

4.4.36

7 months ago

4.9.49

7 months ago

4.4.35

7 months ago

4.4.34

7 months ago

4.4.33

7 months ago

4.2.17

8 months ago

5.9.59

6 months ago

4.2.15

8 months ago

4.2.16

8 months ago

4.5.36

7 months ago

4.3.17

8 months ago

4.3.19

8 months ago

4.3.18

8 months ago

4.8.41

7 months ago

4.8.40

7 months ago

4.8.42

7 months ago

4.3.31

7 months ago

4.3.30

7 months ago

4.3.32

7 months ago

4.1.14

8 months ago

4.1.15

8 months ago

4.3.20

8 months ago

4.8.38

7 months ago

4.3.24

8 months ago

4.3.23

8 months ago

4.3.22

8 months ago

4.8.39

7 months ago

4.3.21

8 months ago

4.3.28

7 months ago

4.3.27

7 months ago

4.3.26

7 months ago

4.3.25

8 months ago

4.3.29

7 months ago

4.1.13

8 months ago

3.1.12

8 months ago

3.1.11

8 months ago

3.1.10

8 months ago

4.1.12

8 months ago

3.1.9

8 months ago

3.0.9

8 months ago

3.0.8

8 months ago

3.0.7

8 months ago

3.0.6

8 months ago

3.0.5

8 months ago

3.0.4

8 months ago

3.0.3

8 months ago

3.0.2

8 months ago

2.0.2

8 months ago

2.0.1

8 months ago

1.0.1

9 months ago

1.0.0

9 months ago