1.0.2 • Published 2 months ago

@libgitname/impedit-iure-recusandae v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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('@libgitname/impedit-iure-recusandae');

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

eventDispatcherless.jseslintconfigdataviewbreakdeepjson-schema-validationMicrosoftReactiveXlastmkdirpcommand-line__proto__css variablePromiseES7frameworktrimStartES2018dayjswatchFilereadableWeakSetentriesansiArray.prototype.flatexit-coderm -frspinnerkeyfulllinkreducerpoint-freereadhttpsclonetypesafewhichnodeapollodragpropertyxssprefixECMAScript 2019Array.prototype.flattenecmascriptsharedmatchesnegativeindicatorgetstreams2codescore-jsincludescompileroperating-systempopmotionvaluei18nbyteOffsetfilterECMAScript 2022weaksetwalkCSSStyleDeclarationcryptocoreexpresslrubundlingupstructuredClonegetoptparsersharedarraybufferUint8ArraywalkingmixinsargsArrayBuffer#sliceclass-validatorsanitizeguidpicomatchdiffTypeScriptloggerprototypebrowserlisteventEmitterStreamsthroatregularrequiredefinenameses5streamcjkfastObject.assignpersistentmimetypesbootstrap lessYAMLglobtskoreansomecolumnsarraybufferpatchartfindLastIndextypesbabel-corepostcsswritablejsdomoncefunctionimportsignalmovelibphonenumberFunction.prototype.nameObject.getPrototypeOfcss nestingclassnameutilsunicodelinewrapregular expressionsString.prototype.matchAllawesomesaucesymbolcolorvaluessymbolsbannertapejasminefantasy-landstyleguidesignalsRxJSpushhelperseslintyuptypescriptprettyfindupfast-deep-copybuffertypedarrayInt32ArraytoArrayasyncasserts.envstylesheetpolyfillpositivetrimEndrequestarrayArray.prototype.filterObservabledeterministicextrabuffersrm -rfjwttypeerrorfixed-widthwarningdotenvspringeventsfunctionsjsfetchescapebyteshebangrmreadablestreaminternalreact animationform-validationargumentjson-schema-validatorjestcomparecomputed-typesloginternal slotclassnamesfrommiddlewaretrimRightsettingsRegExp#flagsinspectlimitencryptiones-shimsrmdirpackage managerposedescriptorsetterhttpmochaconcurrencystylestostringtagfastifyStreamStyleSheetparentsgetintrinsicgdpreslint-plugingetPrototypeOfdom-testing-libraryweakmapcreatecircularprivate datadefinePropertyformattingtermrecursivecall-bindfunctionalReactiveExtensionsObjectdirectorytextrobustmime-dbtoStringTaghashdependency managerRegExp.prototype.flagsuser-streamspropresolvematches2015sortapiECMAScript 2015moduleslinuxbatch-0Object.entriesvisualprunees2016setImmediatebyteLengthconfigcollectionparsejsdiffmacoslesscsses2017checkstarterspecclientWebSocketsfastcopyenumerableES2022varinstallerArrayBuffermimeInt8Arrayconnectstyletrimcall-boundArray.prototype.findLastcallboundmomenthookformJSON-SchemabrowserastsequenceURLdeletequeryzerointrinsicECMAScript 2020coerciblegraphqlvestrangeerrordependenciespuredatastructureflatECMAScript 2018pipetakesigintrandomtouchclisymlinkdeepclonesanitizationArraychannelcurlhandlerscharactersBigUint64ArrayECMAScript 2016ECMAScript 2021gesturesisConcatSpreadablewatchpnpm9watchershellfinddeep-copyreduxslotdeepcopyphonejson-schemachinesepackage.jsonwatchingtypedarraystacitautoprefixerreact-hook-formfullwidthimmutableformlazysafeHyBibddwordwraptoSortednopebootstrap csscensorjavascriptfastcloneiezodFloat64ArraystableArray.prototype.includesharmonyreactl10nworkspace:*classesinferencedescriptorsBigInt64Arraymulti-packagearraysreduceflagsinstalldataViewa11yhardlinksPushpluginObject.valueseslintpluginbcrypttypeperformancetestredux-toolkitxtermECMAScript 5ES2019terminaldebuggerSymbolbluebirdES2016_.extendsigtermurlsortedes-shim APItoolsString.prototype.trimperformantformsloadingdroploggingtelephonejsxfast-copystyled-componentsfast-deep-clonejapanesetoobjectbusymobilestreamswritekarmapropertiesttystatelesscorsconcatcollection.es6packagetc39argparseasciipackageswrapsetES2021es8postcss-pluginshimmonorepoextendestreeyamlreact posenodejsthrottleTypedArrayschemeReflect.getPrototypeOffull-widthaccessorajvqueuefsvalidtaplanguagerfc4122objES2017tddmakeelectronES3widthflattenECMAScript 6getternameassertionArray.prototype.findLastIndexArray.prototype.flatMapeveryextensionoptimizerschemacharacterrapidarktypevalidationJSONlengthoptionuuidmergeequalfigletFloat32Arrayio-tscontainsiterationdatacallbindtranspilewebeseast-asian-widthvariablesfast-clonethreeformatiteratortaskgrouphigher-orderECMAScript 2017trimLeftbindletIteratores-abstractmake dirdircss-in-jstypedArray.prototype.containsECMAScript 3assignAsyncIteratorutilitiestraversemkdirsvariables in csstypanionpasswordcompile lesssymlinksrateprotoUnderscoreassertemojioffsetMapchaicommandervalidate0inputcode pointslockfilemruoutputwaitxhrpromisesArrayBuffer.prototype.slicegradients csstslibdeep-cloneObservableswaapiTypeBoxramdasideserializationcommandreal-timeUint32Arrayes7parentquerystringserializeerrornested cssregexprivateESnexttyped arrayRFC-6455shamconsumeUint8ClampedArrayRxexecCSSreact-testing-libraryirqserializerspeedjoiprogressflatMapless compilerefficientcallbackemitremovestringponyfillaccessibilityes2018awaitflagequality@@toStringTagfile systemredactruntime[[Prototype]]mkdirfoldergetOwnPropertyDescriptorwordbreaklintexitoptimistcallsetPrototypeOfreact-hooksutilregexptranspilerpromiseexpressiontimeajaxobjectWebSocketauthObject.keysquotekeysenvqueueMicrotaskjsonpathreusesyntaxerrorlookWeakMapECMAScript 7scheme-validationjQueryispreprocessoridletestingbundlerconsoleES5workersearchopenmetadatalook-upfpratelimit
1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago