6.12.94 • Published 10 months ago

@diotoborg/nesciunt-veniam v6.12.94

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

10 months ago

6.12.94

10 months ago

6.12.92

10 months ago

6.12.91

10 months ago

6.12.90

10 months ago

6.12.89

10 months ago

6.12.88

10 months ago

6.11.88

10 months ago

6.11.87

10 months ago

5.11.87

10 months ago

5.11.86

10 months ago

5.11.85

10 months ago

5.11.84

10 months ago

5.11.83

10 months ago

5.11.82

10 months ago

5.11.81

10 months ago

5.10.81

10 months ago

5.10.80

10 months ago

5.10.79

10 months ago

5.10.78

10 months ago

5.10.77

10 months ago

5.10.76

10 months ago

5.10.75

11 months ago

5.10.74

11 months ago

5.9.74

11 months ago

5.9.73

11 months ago

5.9.72

11 months ago

5.9.71

11 months ago

5.9.70

11 months ago

5.9.69

11 months ago

5.9.68

11 months ago

5.9.67

11 months ago

5.8.67

11 months ago

5.8.66

11 months ago

5.8.65

11 months ago

5.8.64

11 months ago

5.7.64

11 months ago

5.7.63

11 months ago

5.7.62

11 months ago

5.7.61

11 months ago

5.7.60

11 months ago

5.7.59

11 months ago

5.7.58

11 months ago

5.6.58

11 months ago

5.6.57

11 months ago

5.6.56

11 months ago

5.6.55

11 months ago

5.6.54

11 months ago

5.6.53

11 months ago

5.6.52

11 months ago

5.6.51

11 months ago

5.6.50

11 months ago

5.6.49

12 months ago

5.6.48

12 months ago

5.6.47

12 months ago

5.6.46

12 months ago

5.6.45

12 months ago

5.6.44

12 months ago

5.6.43

12 months ago

5.6.42

12 months ago

5.6.41

12 months ago

5.6.40

12 months ago

5.6.39

12 months ago

5.6.38

12 months ago

5.5.38

12 months ago

5.5.37

12 months ago

5.5.36

12 months ago

5.4.36

12 months ago

5.4.35

12 months ago

5.4.34

12 months ago

5.4.33

12 months ago

5.4.32

12 months 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