6.12.94 • Published 2 years ago

@diotoborg/nesciunt-veniam v6.12.94

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

2 years ago

6.12.94

2 years ago

6.12.92

2 years ago

6.12.91

2 years ago

6.12.90

2 years ago

6.12.89

2 years ago

6.12.88

2 years ago

6.11.88

2 years ago

6.11.87

2 years ago

5.11.87

2 years ago

5.11.86

2 years ago

5.11.85

2 years ago

5.11.84

2 years ago

5.11.83

2 years ago

5.11.82

2 years ago

5.11.81

2 years ago

5.10.81

2 years ago

5.10.80

2 years ago

5.10.79

2 years ago

5.10.78

2 years ago

5.10.77

2 years ago

5.10.76

2 years ago

5.10.75

2 years ago

5.10.74

2 years ago

5.9.74

2 years ago

5.9.73

2 years ago

5.9.72

2 years ago

5.9.71

2 years ago

5.9.70

2 years ago

5.9.69

2 years ago

5.9.68

2 years ago

5.9.67

2 years ago

5.8.67

2 years ago

5.8.66

2 years ago

5.8.65

2 years ago

5.8.64

2 years ago

5.7.64

2 years ago

5.7.63

2 years ago

5.7.62

2 years ago

5.7.61

2 years ago

5.7.60

2 years ago

5.7.59

2 years ago

5.7.58

2 years ago

5.6.58

2 years ago

5.6.57

2 years ago

5.6.56

2 years ago

5.6.55

2 years ago

5.6.54

2 years ago

5.6.53

2 years ago

5.6.52

2 years ago

5.6.51

2 years ago

5.6.50

2 years ago

5.6.49

2 years ago

5.6.48

2 years ago

5.6.47

2 years ago

5.6.46

2 years ago

5.6.45

2 years ago

5.6.44

2 years ago

5.6.43

2 years ago

5.6.42

2 years ago

5.6.41

2 years ago

5.6.40

2 years ago

5.6.39

2 years ago

5.6.38

2 years ago

5.5.38

2 years ago

5.5.37

2 years ago

5.5.36

2 years ago

5.4.36

2 years ago

5.4.35

2 years ago

5.4.34

2 years ago

5.4.33

2 years ago

5.4.32

2 years ago

4.4.32

2 years ago

4.4.31

2 years ago

4.4.30

2 years ago

4.4.29

2 years ago

4.4.28

2 years ago

4.4.27

2 years ago

4.4.26

2 years ago

4.4.25

2 years ago

4.4.24

2 years ago

4.4.23

2 years ago

4.4.22

2 years ago

4.4.21

2 years ago

4.4.20

2 years ago

4.4.19

2 years ago

4.4.18

2 years ago

4.4.17

2 years ago

4.4.16

2 years ago

3.4.16

2 years ago

2.4.16

2 years ago

2.4.15

2 years ago

2.4.14

2 years ago

2.4.13

2 years ago

2.4.12

2 years ago

2.4.11

2 years ago

2.3.11

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago