5.10.86 • Published 9 months ago

@dramaorg/voluptate-quo-atque v5.10.86

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

9 months ago

5.9.75

10 months ago

5.9.76

9 months ago

5.10.81

9 months ago

5.9.77

9 months ago

5.10.80

9 months ago

5.9.78

9 months ago

5.9.71

10 months ago

5.9.72

10 months ago

5.9.73

10 months ago

5.9.74

10 months ago

5.9.70

10 months ago

4.6.37

11 months ago

4.6.38

11 months ago

4.6.36

11 months ago

5.10.86

9 months ago

5.10.83

9 months ago

5.9.79

9 months ago

5.10.82

9 months ago

5.10.85

9 months ago

5.10.84

9 months ago

5.9.64

10 months ago

5.9.65

10 months ago

5.9.66

10 months ago

5.9.67

10 months ago

5.9.60

10 months ago

5.9.61

10 months ago

5.9.62

10 months ago

5.9.63

10 months ago

4.9.51

10 months ago

4.9.50

10 months ago

4.9.53

10 months ago

4.9.52

10 months ago

4.9.55

10 months ago

4.9.54

10 months ago

4.9.57

10 months ago

4.9.56

10 months ago

4.9.59

10 months ago

4.9.58

10 months ago

4.7.38

11 months ago

5.9.68

10 months ago

5.9.69

10 months ago

4.9.42

11 months ago

4.9.44

11 months ago

4.9.43

11 months ago

4.9.46

11 months ago

4.4.32

11 months ago

4.9.45

11 months ago

4.9.48

10 months ago

4.9.47

10 months ago

4.4.36

11 months ago

4.9.49

10 months ago

4.4.35

11 months ago

4.4.34

11 months ago

4.4.33

11 months ago

4.2.17

12 months ago

5.9.59

10 months ago

4.2.15

12 months ago

4.2.16

12 months ago

4.5.36

11 months ago

4.3.17

12 months ago

4.3.19

12 months ago

4.3.18

12 months ago

4.8.41

11 months ago

4.8.40

11 months ago

4.8.42

11 months ago

4.3.31

11 months ago

4.3.30

11 months ago

4.3.32

11 months ago

4.1.14

12 months ago

4.1.15

12 months ago

4.3.20

12 months ago

4.8.38

11 months ago

4.3.24

11 months ago

4.3.23

11 months ago

4.3.22

12 months ago

4.8.39

11 months ago

4.3.21

12 months ago

4.3.28

11 months ago

4.3.27

11 months ago

4.3.26

11 months ago

4.3.25

11 months ago

4.3.29

11 months ago

4.1.13

12 months ago

3.1.12

12 months ago

3.1.11

12 months ago

3.1.10

12 months ago

4.1.12

12 months ago

3.1.9

12 months ago

3.0.9

12 months ago

3.0.8

12 months ago

3.0.7

12 months ago

3.0.6

1 year ago

3.0.5

1 year ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago