7.11.109 • Published 1 year ago

@devtea2026/quisquam-ea-vero-temporibus v7.11.109

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2026/quisquam-ea-vero-temporibus 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('@devtea2026/quisquam-ea-vero-temporibus');
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('@devtea2026/quisquam-ea-vero-temporibus');
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('@devtea2026/quisquam-ea-vero-temporibus');
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

modulesettingsframeworkInt32Arrayes-shim APIshellsescall-bindclientl10nwatchFilemapes8streamupeast-asian-widthartgradients css3groupBydatewatcherlazychromiumconcurrencytestjsdompatchi18npackage managerflattenbundlingimmutabletraversefasttypestermstringifierutilgetOwnPropertyDescriptorconfigtypesafewordbreakboundESRxJSeslintconfigArray.prototype.flatprivateTypeScripta11yfpsdomES2016containss3stableoptimizercompilerwhatwgawsfixed-widthECMAScript 2023iefullreact-testing-librarymkdirsreact-hook-formparenttoolsomitappoptionerror-handlingkeyratelimitdirectorymake dirasciiserializertypedeepdotenvconsumequeueredux-toolkitinternal slotrestfulsetsameValueZeropredictabletelephonelogger[[Prototype]]arrayYAML0gdprcallbacklimitedfilteroffsetnopejoienvPromisermdirfromless.jses5vestdatastructureinferencematchAllworkflowassertioncollectionglobassignlengthfastcopysinatrasidemetadataajvtoStringTagtaperegexpflatMapES2017cryptcoregradients csscompile lesspolyfillsomepreserve-symlinkstaskmimetypesRFC-6455libphonenumbertyped arraydataViewvpcsyntaxUnderscoreshamwidthdeepcopycloudsearchuuidObject.getPrototypeOfbyteOffsetsqstouchapolloansihashcircularhardlinksunicodebootstrap csssafebootstrap lessworkerstarterqueueMicrotaskenderformatRegExp#flagsparentsdayjstestingspinnersasserttextfilegetonceoptimistes7setterpostcssInt8ArrayargsCSSdependenciesparsingfunctionsless compilershimbufferCSSStyleDeclarationyamlarraysgetoptterminaleslintwhichconnectamazonvaluescharactersponyfillstylingreadablestreamcommand-linefseventsfetchsignalsArray.prototype.containsvalidmulti-packagenamecomparepipetostringtagclass-validatorsharedsymlinksharedarraybuffercss-in-jsutilitymergeprogressmobileenvironmentshasOwnPropertywatchtoArrayrdstrimStartauthenvironmentkarmaclassnamesObject.fromEntriesextendSymbol.toStringTagReactiveExtensionsgraphqltakeflagsbrowserlistinterruptsstdlibserializationhttpbusydiffObservableprocesstrimLeftmkdirarktypeprototypeajaxArray.prototype.includesRxdatanegativelistenersdeletewalkiterateES3propertynested cssperformantenumerabledeep-clonepicomatchdebugesMapvalidationfindLastIndexbyteweaksetsymlinksform-validationpositiveObject.isconsoleArray.prototype.findLastIndexpreprocessorcorslookhttpslog$.extendsequencefullwidthJSON-Schematypanion@@toStringTagPushjsonpathtypeerrorWeakSeteventDispatcherdynamodbbcryptHyBibeanstalkexpressiontslibnamesrangeerrorstreamsextraformlinkstreams2phoneES2022ESnextcryptoinvariantArray.prototype.flattenmoduleszeroreusesignalastnodedescriptorawaitcensorapifast-deep-copytddtestercss nestingtoobjectxtermnegative zeroimportexportresolveminimalkeysrobustpnpm9Function.prototype.nameString.prototype.trimReflect.getPrototypeOfio-tsvariableseslintpluginhookformcloudfrontec2findLastparsesymbolscoerciblewgetcall-boundObject.keyspackage.jsonautoscalingrgbArray.prototype.flatMapmapreducedirchailrumonoreposigtermsymbolperformancejsonsortreducerloggingcss lessstatuscliwarningdeepcloneInt16Arraywalkingjshintvaluecloudformationcloudtrailkinesisspecownjsxes2018slotincludesbrowserslistArray.prototype.filtershrinkwrapArrayBuffer#slicees2017columnirqbundlerparserArrayBuffer.prototype.slicereduximportECMAScript 7utilitiespostcss-pluginjsdiffstringifyautoprefixeropenerrorfast-cloneutil.inspectlimitinrm -rfString.prototype.matchAlliterationBigUint64ArrayschemesortedloadbalancingxhrlinewrapReactiveXclassnamecolorsquoteshebangnodejsprefixregular expressionsmakerecursivecallbindproxyECMAScript 2016typeof.envescapegetPrototypeOfcss variableendpointmomentequalityWebSocketsregexTypedArraydefinePropertypackagebrowserdescriptorsUint8ClampedArraytc39searchfast-copyreadableduplexkoreanhandlersprunehooksIteratorcloudwatchaccessorFloat32ArraybufferscreatereplayUint8Arraycollection.es6styleconcatawesomesaucestringreact-hooksfind-upsyntaxerroriteratorregular expressionserializequerystringbatchisvalidateinputES5256throttleES2018fluxcode pointsnativereactecmascriptfindupsuperstructregularrequestelbargumentlanguagebreakreal-timeinstalltypedarraysmatchtapglobalstypedarrayzodconfigurablettyES7cjkgettercheckES2021StyleSheetdebuggercopystoragegatewayECMAScript 2021webdefinetoSortedeventsfunctionmruarraybufferfindECMAScript 5bindfile systemindicatorexitairbnbremoveECMAScript 2022dataviewencryptionargparsemimeclasseslook-upefficientyuprfc4122ES2015sigintspinnerpersistentjavascripttrimRightes6ES2023immereventEmitter__proto__rateECMAScript 2020installerpasswordnumberrouterObject.valuestypedbyteLengthviewfastclonecloneglacierglobaloperating-systemes-abstractmiddlewarefoldercore-jshas-ownJSONchromeObservablestrimbanneres2015outputliveURLebsmatchesloadingObject.assignidentifiersequalsuperagentmoverandomObject.definePropertyArrayformslesscssassertsprotobufvisualTypeBoxES2020pushmacosdeep-copyeveryauthenticationstylesexit-codetsmochaprotocol-buffersconcatMaplastroute53urlwaitArray.prototype.findLastfunctionalvariables in cssquerygetintrinsicentriessnsArrayBufferelasticacheredactObject.entrieselmworkspace:*colorwatchingUint16ArraymixinssetPrototypeOfswfvarsfast-deep-clonechineseqsdropmime-dbSetStreamcallspeedjapanesepropertieswritableisConcatSpreadableemrcurlRegExp.prototype.flagsECMAScript 2015jestformattingstructuredClonepackagesexpressSymbolidjasmine
7.11.109

1 year ago

7.11.108

1 year ago

7.11.107

1 year ago

7.11.106

1 year ago

7.11.105

1 year ago

7.11.104

1 year ago

7.11.103

1 year ago

7.11.102

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.30

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

6.8.87

1 year ago

1.1.32

1 year ago

6.8.86

1 year ago

1.1.31

1 year ago

6.8.85

1 year ago

5.7.67

1 year ago

1.1.38

1 year ago

6.8.84

1 year ago

1.1.37

1 year ago

6.8.83

1 year ago

5.7.69

1 year ago

1.1.36

1 year ago

5.7.68

1 year ago

1.1.35

1 year ago

1.1.39

1 year ago

3.4.52

1 year ago

3.4.53

1 year ago

3.3.51

1 year ago

3.3.52

1 year ago

4.6.62

1 year ago

4.6.63

1 year ago

4.6.60

1 year ago

4.6.61

1 year ago

4.6.66

1 year ago

4.6.67

1 year ago

4.6.64

1 year ago

4.6.65

1 year ago

3.1.46

1 year ago

2.1.39

1 year ago

4.6.59

1 year ago

5.6.67

1 year ago

6.9.93

1 year ago

6.9.92

1 year ago

6.9.91

1 year ago

6.9.90

1 year ago

7.10.96

1 year ago

2.1.45

1 year ago

2.1.46

1 year ago

7.10.98

1 year ago

2.1.43

1 year ago

7.10.97

1 year ago

2.1.44

1 year ago

2.1.41

1 year ago

1.0.22

1 year ago

7.10.99

1 year ago

2.1.42

1 year ago

2.1.40

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

6.9.95

1 year ago

1.0.24

1 year ago

6.9.94

1 year ago

1.0.23

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

4.4.54

1 year ago

4.4.53

1 year ago

4.4.58

1 year ago

4.4.57

1 year ago

4.4.56

1 year ago

4.4.55

1 year ago

6.9.89

1 year ago

6.9.88

1 year ago

6.9.87

1 year ago

3.2.46

1 year ago

3.2.48

1 year ago

3.2.47

1 year ago

5.7.81

1 year ago

5.7.80

1 year ago

3.2.49

1 year ago

7.9.95

1 year ago

7.9.96

1 year ago

7.10.100

1 year ago

7.10.102

1 year ago

7.10.101

1 year ago

4.5.58

1 year ago

4.5.59

1 year ago

5.7.74

1 year ago

5.7.73

1 year ago

5.7.76

1 year ago

5.7.75

1 year ago

5.7.70

1 year ago

5.7.72

1 year ago

5.7.71

1 year ago

3.2.51

1 year ago

3.2.50

1 year ago

6.7.81

1 year ago

6.7.82

1 year ago

6.7.83

1 year ago

5.7.78

1 year ago

5.7.77

1 year ago

5.7.79

1 year ago

1.0.21

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