3.2.18 • Published 1 year ago

@juigorg/voluptatibus-atque-earum v3.2.18

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('@juigorg/voluptatibus-atque-earum');

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

identifierstyped arrayredirectfastcopyes-shim APIamazondeepcopylruObject.ispreserve-symlinksECMAScript 2023flatMaplocationproppipereact-testing-librarygetinternal slotreadableecmascripti18nbatchyamldatastructureguidspinnerPromisereact-hook-formMapchineseObservablesbyteOffsetoptimizerio-tsphonesymlinkerrorreadprogressstyleguideutilitiesreducegetteroffsetcensorsameValueZerorangeerroroutputcolourfindLastrmdirjsxinvarianteventEmittersliceajaxcloudwatchequalityhelperstraverseES5tapincludesgroupnegativeautoscalingjshintmodulecompilerquerystringrdsl10nredactObject.assignwarningdefaultfilextermES2018fast-deep-clonetimehasOwnPropertysideObject.definePropertyStreamswalkstarterprototypeclonecss-in-jsworkspace:*expressionglaciercalldeepindicatorsomeCSSStyleDeclarationcodesfast-cloneqsratelimitinstallparentsstreamsruntimeshamtc39typeerrorwhichYAMLECMAScript 2015assertionArray.prototype.findLastIndexArray.prototype.includesconsumejesttypedarrayinstallerieprotocol-buffersconfigurablechannelcore-jsdom-testing-libraryUint8ClampedArraypnpm9toolsjoieslintconfigextrachromereact animationrequiremake dirbdddependency managerloadingvariablesmoveremoveownpromisesapolloroutinggroupByes2018agentschemahasasciifetchTypeBoxs3findavaes2017ArrayBufferperformantWeakMapredux-toolkitduplexpluginquoteprivate datapathinternaltrimLeftstylesreducer@@toStringTagpatchthroatECMAScript 2019a11ydescriptorstabletrimStartURLdeterministicmrucolorresolveconcurrencyTypeScriptbusyloggingroutesequenceECMAScript 2017coerciblewaitparentstreams2HyBiequalsharedarraybufferdataViewprivatees7ECMAScript 7IteratorReactiveExtensions256elasticacheidlees5packagesoncediffshebangkeysebsurliteratorswfutilviewlinewrapimportexportfastcomparetrimtypanionSetURLSearchParamslistenersarrayselectronES8rapidpromiseconvertcall-boundlook-upcsscmdlimitedserializerfast-copy
2.2.17

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.17

1 year ago

3.2.18

1 year ago

2.2.12

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

1.2.6

1 year ago

1.1.6

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

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