1.0.5 • Published 8 days ago

@teamteanpm2024/aut-delectus-necessitatibus v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days 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('@teamteanpm2024/aut-delectus-necessitatibus');

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

typanionsometaperoute53hash_.extendRFC-6455npmregular expressionECMAScript 2017randomcircularenvironmentstyleslimitdefinePropertytypeerrorrobustes8eslintpluginprivate datatelephonemomentoptionsymlinksprunebuffercodes__proto__Symbol.toStringTaguser-streamsenderparentsgetOwnPropertyDescriptortrimLeftfastifyenumerableRxnopeboundenvdeep-clonebundlerdatastructureutil.inspectglobstylesheetfulloncephonekeytermec2arthasOwnArray.prototype.findLastconsoleregular expressionsmapclassesharmonyMapelbprototypequerystringes5io-tsnativerfc4122ES2023lazyObject.valuesgroupperformantapishrinkwrapsignalsObject.getPrototypeOfpreserve-symlinksconfigdataprefixdomObjectpoint-freevariablesArray.prototype.flatMaptoArrayhasOwnPropertyrangeerroreveryweaksetfunctionshelpersTypeScriptjQueryfpscliURLSearchParamsfindLastwritableES2017SymbolescapelockfiletoolkitsymlinkextendObject.definePropertyinferenceutilitiestouchinternal slotES7traverselengthvpcsequencevalidatorECMAScript 2019hassigintcontainsoptimizersanitizebabel-coreObject.entriesvalidatescheme-validationfantasy-landwalkreadablestreamObservableconfigurablecomparepnpm9getPrototypeOf3doperating-systema11yfigletamazoncjkajaxrequestassignES2019protocol-buffersthrottleflatMapajvgradients css3less compilerserializationlogfastiamfull-widthECMAScript 2021arktypepropertiestoStringTagreadablegetjavascriptform-validationECMAScript 6airbnbyamlfpemrargvarraybufferpolyfillcryptomruswferrorstablelanguageelectroncommanderlinuxasciitranspilerdeep-copydescriptionReflect.getPrototypeOfsharedarraybuffersyntaxerrorauthcallbackES2016springsimpledbpositivecorsthreeStyleSheetcommand-lineserializedependenciess3widthcloudwatchbootstrap cssmulti-packageframeworkshimlistenersFunction.prototype.nameES2015babelcomputed-typesindicatorshamtrimRightbreaktypesafemakeformIteratorxhrrdstacitdataviewsymbolsmapreducermdirmergestyleguidegdprcharacteridlearrayparentessuperagenttyped arrayworkerObject.isyupjsdomreact-hooksECMAScript 2023preprocessores7internalloadingirqES8httpinstringArray.prototype.filterdescriptorcompile lesstaskTypedArraypatharrayspackageduplexwhichstyled-componentscloudformationcheckcorelinkkeysUint8ArrayspecmonorepogestureswalkingES6autoscalingStreamsjwtcopyslotes2015commandinspectjsxbyteLengthes2016validkoreanstylingsetPrototypeOfsetterCSSStyleDeclarationkarmapersistentdebugastinstallerjsonpathdefinejasminebannerargumentrm -rfcurriedstreamsUint8ClampedArrayjsonschemapopmotionobjcloudsearchcryptquerywaittc39wgetownexecebsvisualsearchreactexitimmutableless cssexpressionpostcssworkflowWebSocketssharedendpointregexphookformloadbalancingfindLastIndexramdaes-shimses2017statelesschinesewaapisortedwebpasswordaccessorcss lesswordwrapformatperformance.envisConcatSpreadableObject.keysoutputefficientieglacieres-shim APIl10nes-abstractbatchwatchstoragegatewayMicrosoftzodparserhttpsdescriptorsHyBilogger
1.0.5

8 days ago

1.0.4

9 days ago

1.0.3

10 days ago

1.0.2

11 days ago

1.0.1

12 days ago

1.0.0

12 days ago