3.2.33 • Published 1 year ago

@kollorg/adipisci-rerum-tenetur v3.2.33

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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('@kollorg/adipisci-rerum-tenetur');

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

Uint8ArraypyyamlminimalJSON-Schemadebug@@toStringTagdeterministicroutinghas-owndataconfigcheckgetterpreserve-symlinksredux-toolkitajvbannerchildECMAScript 3util.inspecttaskimmerfshelperfast-copyutilitieslastStyleSheetbundlervaluesposeArray.prototype.containskinesisinIterator-0workerdirectoryansidebuggeres5removedeep-copyvaluereal-timebusylaunchdefinePropertymochaargsES7deepstyledescriptormkdirpcore-jsstartcall-bindES2022callstyleguidesuperagentformprotobufmodulestimelazyimmutablecssfastnumberglobalsamazonjsonserializerequalityregular expressionsfast-deep-copyregexpxhrcurlchromecommand-lineES2016nodejsfromecmascriptRxfastcopycolorgetPrototypeOfsyntaxswfMicrosoftwriteonceformatdayjsbrowserlistpropeslint-plugintrimlimitedcolumnsrmdirtestingbeanstalkreactwordwrapconsumespringmimetypesexecsidescheme-validationtyped arraymobilecontainsmime-dbArray.prototype.findLastargumentvariablesreduxglobespreeapioffsetuuidperformanceObservabletextwebsiteObject.valuestoolsArray.prototype.filterfast-clonewalkisConcatSpreadablenodetypedquerywebargvfunctionsstatelesseventEmitterregexchineseloadbalancingintrinsicfolderreact posestreamelbECMAScript 2019eslintconfigequalsetImmediatemkdirassertsenvironmentslocationUnderscorelinkredirectanimationlintasciimake dirpackage managercoredescriptorsformsgetintrinsiclogvpctc39installtypesdeep-cloneArray.prototype.flattenjsonpathreact-testing-librarypnpm9URLSearchParamsidentifiersprettymatchthrottleArray.prototype.includesstylestrimLeftprototypecharacterapollo[[Prototype]]concurrencysymlinklinewraptypedarraysautoscalingglobalponyfillflattenvaliddependency managerprivate dataUint32Arrayformattingjoiartfunctionalxdgpackage.jsonmetadatadragECMAScript 2021ES2018es-abstractReactiveXbytedom-testing-librarystoragegatewayECMAScript 2022makerouteeast-asian-widthbreakshellproxyObservableseventDispatcherhttpsserializationapprapiddescriptiones7commandercensorRegExp.prototype.flags3dmovepostcssspinnerqueuerobustdatastructurewidthtoStringTagdynamodbshamoutputredactseses6avatoSortedArrayBuffer.prototype.sliceES2023readablestreamautoprefixertestchromiumelectronbatchinternalarrayscolourstarteraccessibilityfind-upspeedpruneperformantbundlingEStsobjectcloudtrailtypanionlook-upObject.keysqsnpmframeworkdeletetermarktypejasminesettingsviewWeakMapconsolemoduleclientoptionStreamspropertiesdropYAMLgroupcmdasyncparsereadable$.extendworkspace:*opendataviewrequireWebSocketsunicodevalidatebddidleES2017ES2020somechaimergekeycloneoptimizerRFC-6455karmaes2018JSONhasOwnsequencecircularsuperstructfile systemextensionArray.prototype.flatbrowserslistfileTypedArraywhatwgparentsparsingspinnersECMAScript 2015setPrototypeOffindtslibquerystringBigUint64Arrayregularfast-deep-clonePushtoucheslintpluginObject.getPrototypeOfutilboundloggergetoptcall-boundarrayiejestutilityInt32Arrayyamlsharedweaksetbrowserfunction.lengthpolyfillECMAScript 2017wafpromisesajaxrmstdlibenviconvflaghashpersistentframersimpledbrecursiveArray.prototype.flatMaprdsHyBinamediffObjectcharacterspostcss-pluginvarsratezero.envincludesObject.assigntakecollection.es6ECMAScript 2020errorchanneldeepcloneresolveTypeBoxgraphqlsymbolsfastifyiamesxtermPromiseobjsqstraversetypesafewarningxdg-openparsercomputed-typesReactiveExtensionsebs0typeprocessisglacierprototapecopydeepcopyroute53phonehardlinkscli
3.2.26

1 year ago

3.2.28

1 year ago

3.2.27

1 year ago

3.2.29

1 year ago

2.2.17

1 year ago

2.2.18

1 year ago

2.2.15

1 year ago

2.2.16

1 year ago

2.2.13

1 year ago

2.2.14

1 year ago

3.2.31

1 year ago

3.2.30

1 year ago

3.2.33

1 year ago

2.2.19

1 year ago

3.2.32

1 year ago

2.2.26

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.22

1 year ago

2.2.23

1 year ago

2.2.20

1 year ago

2.2.21

1 year ago

2.2.12

1 year ago

2.1.9

1 year ago

2.2.11

1 year ago

2.1.10

1 year ago

2.1.11

1 year ago

2.1.8

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago