5.10.86 • Published 1 year ago

@dramaorg/voluptate-quo-atque v5.10.86

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

1 year ago

5.9.75

1 year ago

5.9.76

1 year ago

5.10.81

1 year ago

5.9.77

1 year ago

5.10.80

1 year ago

5.9.78

1 year ago

5.9.71

1 year ago

5.9.72

1 year ago

5.9.73

1 year ago

5.9.74

1 year ago

5.9.70

1 year ago

4.6.37

1 year ago

4.6.38

1 year ago

4.6.36

1 year ago

5.10.86

1 year ago

5.10.83

1 year ago

5.9.79

1 year ago

5.10.82

1 year ago

5.10.85

1 year ago

5.10.84

1 year ago

5.9.64

1 year ago

5.9.65

1 year ago

5.9.66

1 year ago

5.9.67

1 year ago

5.9.60

1 year ago

5.9.61

1 year ago

5.9.62

1 year ago

5.9.63

1 year ago

4.9.51

1 year ago

4.9.50

1 year ago

4.9.53

1 year ago

4.9.52

1 year ago

4.9.55

1 year ago

4.9.54

1 year ago

4.9.57

1 year ago

4.9.56

1 year ago

4.9.59

1 year ago

4.9.58

1 year ago

4.7.38

1 year ago

5.9.68

1 year ago

5.9.69

1 year ago

4.9.42

1 year ago

4.9.44

1 year ago

4.9.43

1 year ago

4.9.46

1 year ago

4.4.32

1 year ago

4.9.45

1 year ago

4.9.48

1 year ago

4.9.47

1 year ago

4.4.36

1 year ago

4.9.49

1 year ago

4.4.35

1 year ago

4.4.34

1 year ago

4.4.33

1 year ago

4.2.17

1 year ago

5.9.59

1 year ago

4.2.15

1 year ago

4.2.16

1 year ago

4.5.36

1 year ago

4.3.17

1 year ago

4.3.19

1 year ago

4.3.18

1 year ago

4.8.41

1 year ago

4.8.40

1 year ago

4.8.42

1 year ago

4.3.31

1 year ago

4.3.30

1 year ago

4.3.32

1 year ago

4.1.14

1 year ago

4.1.15

1 year ago

4.3.20

1 year ago

4.8.38

1 year ago

4.3.24

1 year ago

4.3.23

1 year ago

4.3.22

1 year ago

4.8.39

1 year ago

4.3.21

1 year ago

4.3.28

1 year ago

4.3.27

1 year ago

4.3.26

1 year ago

4.3.25

1 year ago

4.3.29

1 year ago

4.1.13

1 year ago

3.1.12

1 year ago

3.1.11

1 year ago

3.1.10

1 year ago

4.1.12

1 year ago

3.1.9

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

3.0.7

1 year 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