6.12.94 • Published 12 months ago

@diotoborg/nesciunt-veniam v6.12.94

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

ArrayBuffer.prototype.slice Version Badge

github actions coverage License Downloads

npm badge

An ES spec-compliant ArrayBuffer.prototype.slice shim. Invoke its "shim" method to shim ArrayBuffer.prototype.slice if it is unavailable.

This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the spec.

Most common usage:

var assert = require('assert');
var slice = require('@diotoborg/nesciunt-veniam');

var ab = new ArrayBuffer(1);
var arr = new Uint8Array(ab);
arr[0] = 123;

var ab2 = slice(ab);

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

if (!ArrayBuffer.prototype.transfer) {
	slice.shim();
}

var ab2 = ab.slice();

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

Tests

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

helperperformanceserializesomeUnderscoreerrorawesomesaucestringStreamtimeqsremovewarningmixinsregular-expressionECMAScript 3ES2017expressdom-testing-librarytddvisualprivateforkless csseslintconfigchinesecheckpoint-freeconfigcolorimmerES2023colourmodulessharedignoreECMAScript 5String.prototype.trimtranspilerutilarraycolumnswindowWeakSetelmCSSjsfaststructuredCloneformUint32ArrayRegExp.prototype.flagsclassessetterstreamkeyhasOwnvalidatorpredictablecompilerurlString.prototype.matchAllinstalltesterparseasynctsaccessibilityECMAScript 7ArrayBuffer.prototype.slicerequestsameValueZerohookforminternalweaksetaccessorstoragegatewayreduxdefinePropertysafeECMAScript 6interruptstestingfast-clonesharedarraybufferenumerableECMAScript 2016symboljavascriptES5typesafehandlergetOwnPropertyDescriptorpackagesdescriptorsexecuteharmonyirqloggerschemacolorsservicettyjson-schemaform-validationworkflowjshintsymlinkbddtrimrangeerroranimationes-shim APIWebSocketsmruECMAScript 2015chainegativeloggingposePushtoStringTagmoveregexpregular expressiontrimEndpositiveMicrosoftmakecall-bounddependency managerfast-deep-copyterminalsigintshrinkwrapmkdirpless compilerbufferslotisdataviewjapaneseprototypetrimRightdescriptionglobal objectspringschemeArray.prototype.containsbinarybrowserlistpassword3darraysfile systemspinnersbinariesiterationidentifiersoptimistgdprreact animationchildtouchcreateimportexportmodule@@toStringTagviewmacosfastifyiteratorreducerchromerecursivetypesdynamodbcomparebabel-corefront-endreact-testing-librarygroupByartutilitytraverseBigInt64ArraymetadatacallbindiamsignalReactiveExtensionsclilanguageequalitybootstrap cssObservablesbindargsSymbol.toStringTagdomstyled-componentsfindLastIndexgetintrinsicfast-copyTypeScripttc39operating-systemloadbalancingRxJSuser-streamstrimLeftserializerarraybufferdeep-clonesimpledbamazonindicatorshamnested cssRxpnpm9spinnerfindgrouphigher-orderArray.prototype.filterES2022io-tstypescriptbeanstalkArray.prototype.flatMapglobal this valueminimalgradients csswritereduceflatMapawsmake dirsubprocessinspectwgetweakmapcallReactiveXdirectorysignedjsdomdiffObservabledirfullRFC-6455argvfilterauthenticationcurriedefficients3HyBitacitIteratornumberscheme-validationstringifytyped array256Object.valuesprotocoerciblehooksstreamsstyleassertiongradients css3transportconcatlinkdeepclonestableregexeslint-pluginjson-schema-validationcss variablereadableopensslwaapiredirectramdastatusgitignoreArray.prototype.findLastIndexelasticacheendpointECMAScript 2023flagsmkdirlasterror-handlingES2021lockfileObject.assignbrowserenvsetpropertypromiseunicodestyleguidedatabyteapiUint16ArrayemitES7handlersreplayrgbconstmulti-packagees2015linuxworkspace:*Object.getPrototypeOfdescriptorwhichcoreswfqueueMicrotaskmomentpolyfilllogimmutablecryptconfigurablesuperagentjwtcjkjsonflagextraArrayBuffer#slicejson-schema-validatorclassnamebabelflatFloat64ArrayJSON-SchemaES3authsequenceairbnbtoobjectrouteformattingFunction.prototype.namedataViewsignalsprefixvaluesconsumeES6propcallbackgetPrototypeOfInt16Arrayexit-codedeepcopyperformantclientBigUint64Arrayfull-widthtextnegative zerotoSortedtypeerroreverya11ygenericsxtermreact-hook-formmanagerebsinstallerinternal slotjsxmonoreporequireformatfetchespreevaluematchzxArray.prototype.includesregularvariables in css$.extendstylesutilitieshas-ownObject.fromEntriescodesbyteLengthpluginmatchAllautoscalingclassnamesframerInt32Array0settingsshebangObject.keyscollection.es6i18nsymlinkses7ECMAScript 2021filereact posejestwritableoutputpostcss-plugingetoptslicenpmignoreresolvemapajvapollochromiumrdshttpeventDispatchermergeuploadexecArray.prototype.flattenpicomatchimportmocksuperstructTypedArraytakees-shimsfigletoptimizerlistenerstypedarrayesInt8ArraytypedarraysphoneclonesnsArrayBufferless mixinsassertsreactnopeObject.entriesfunction-0elblessiterateisConcatSpreadableenvironment6to5nodejsshellpinokinesispatchredactpreprocessorfastcopyvarstostringtagentriesnodeeast-asian-widthinputnativeargumentyuppyyamlzodbcryptpackage.jsonquoteCSSStyleDeclarationwafvariableshasOwnPropertybinRegExp#flagscloudtrailcommandervalidatehotqueueprocessreusees2018css-in-jsserializationtypanionspawnprotocol-buffersfluxcontainsSymbolsqsES2018Object.definePropertydropomitfindLastUint8ClampedArrayloading
6.12.93

12 months ago

6.12.94

12 months ago

6.12.92

12 months ago

6.12.91

1 year ago

6.12.90

1 year ago

6.12.89

1 year ago

6.12.88

1 year ago

6.11.88

1 year ago

6.11.87

1 year ago

5.11.87

1 year ago

5.11.86

1 year ago

5.11.85

1 year ago

5.11.84

1 year ago

5.11.83

1 year ago

5.11.82

1 year ago

5.11.81

1 year ago

5.10.81

1 year ago

5.10.80

1 year ago

5.10.79

1 year ago

5.10.78

1 year ago

5.10.77

1 year ago

5.10.76

1 year ago

5.10.75

1 year ago

5.10.74

1 year ago

5.9.74

1 year ago

5.9.73

1 year ago

5.9.72

1 year ago

5.9.71

1 year ago

5.9.70

1 year ago

5.9.69

1 year ago

5.9.68

1 year ago

5.9.67

1 year ago

5.8.67

1 year ago

5.8.66

1 year ago

5.8.65

1 year ago

5.8.64

1 year ago

5.7.64

1 year ago

5.7.63

1 year ago

5.7.62

1 year ago

5.7.61

1 year ago

5.7.60

1 year ago

5.7.59

1 year ago

5.7.58

1 year ago

5.6.58

1 year ago

5.6.57

1 year ago

5.6.56

1 year ago

5.6.55

1 year ago

5.6.54

1 year ago

5.6.53

1 year ago

5.6.52

1 year ago

5.6.51

1 year ago

5.6.50

1 year ago

5.6.49

1 year ago

5.6.48

1 year ago

5.6.47

1 year ago

5.6.46

1 year ago

5.6.45

1 year ago

5.6.44

1 year ago

5.6.43

1 year ago

5.6.42

1 year ago

5.6.41

1 year ago

5.6.40

1 year ago

5.6.39

1 year ago

5.6.38

1 year ago

5.5.38

1 year ago

5.5.37

1 year ago

5.5.36

1 year ago

5.4.36

1 year ago

5.4.35

1 year ago

5.4.34

1 year ago

5.4.33

1 year ago

5.4.32

1 year ago

4.4.32

1 year ago

4.4.31

1 year ago

4.4.30

1 year ago

4.4.29

1 year ago

4.4.28

1 year ago

4.4.27

1 year ago

4.4.26

1 year ago

4.4.25

1 year ago

4.4.24

1 year ago

4.4.23

1 year ago

4.4.22

1 year ago

4.4.21

1 year ago

4.4.20

1 year ago

4.4.19

1 year ago

4.4.18

1 year ago

4.4.17

1 year ago

4.4.16

1 year ago

3.4.16

1 year ago

2.4.16

1 year ago

2.4.15

1 year ago

2.4.14

1 year ago

2.4.13

1 year ago

2.4.12

1 year ago

2.4.11

1 year ago

2.3.11

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago