1.0.0 • Published 14 days ago

@bobyzgirlllnpm/occaecati-odio-quisquam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 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('@bobyzgirlllnpm/occaecati-odio-quisquam');

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

inferenceyupmoveemrbyteOffsettoolspipepropertieselasticachebeanstalkArrayBuffer.prototype.slicequerytypescriptFunction.prototype.namecreateJSONinstallpositiveECMAScript 3searchECMAScript 2016inspectimportformattingeast-asian-widthes0performantchromiumclonetextparsersettingses-shim APIsomePromisemimebreakentriesconcatECMAScript 2019endpointrapidargumentjsdiffString.prototype.trimanimationtypedarraycopyRFC-6455Symbol.toStringTagapinegative zeroarktypeloggingMapES2023rfc4122bannerstylebrowserflagsES2016rssRxfolderartwarningdeterministicsymbolsestreedotenvrmdirextraworkflowprogressgroupcode pointsflattentestTypeBoxtypanioninputprunelibphonenumbereventEmitterforEachcolourES2022htmlSymbolfiglethelpersWeakSettypeofsource mapsuperagentcomputed-typescryptoprefixgesturesStreamcloudfrontJSON-Schemalazyserializationprotocol-buffersiterateURLSearchParamscheckObject.entriesqueueloadingmanipulationuninstallESnextreal-timepackage managerstructuredClonecloudtrailES2018toArraygetoptviewdayjslintstreamslookpicomatchECMAScript 7streamajvtrimEndrmidreactregexcss-in-jsprocessthroatbrowserlist.gitignoretransformshimfileECMAScript 6multi-packagewrapcloudformationonceeverystatelesssymlinksbufferfastifyhas-owntimefunctionsescapegraphqlindicatorUint8ArrayprettyyamlRxJStostringtagi18nmodulesFloat32ArrayfeedcontainssetPrototypeOfminimalstarterSettyped arraypnpm9AsyncIteratorES2019httpredux-toolkittraversepostcss-pluginiteratorpreprocessorhasInt16ArrayawsTypedArrayfull-widthchannelzeroasyncdebuggerdescriptorsroutesettersetImmediatedomtoolkitposeArray.prototype.filtercolumnsbusymatchES2015ponyfillnpmcorehelpercompareFloat64Arraydiffreact animationstoragegatewaystyled-componentsECMAScript 5fullwidthreadreducecallYAMLoptionbinES5-0xhrfile systemArray.prototype.findLastIndexECMAScript 2023limitedfromES2021joigenericsserializercommand-linepolyfilloptimistupwidthstringES2017sharedtddECMAScript 2015deep-copydatashebanginstallerpreserve-symlinksexecfilegroupBystreams2mkdirpbinaryflatvalidatehookssuperstructvalidspeedclies2015findLastIndexgloboutputio-tsinternal slotplugincsslockfilecjkworkerequalsnscloudsearchwriteboundbundlerratelinkisConcatSpreadableec2pushredirectcall-boundroutingmime-dbcharacterprotobufshellkarmasameValueZeroes8ReactiveExtensions$.extendduplexschemaurlObject.assigndeeppersistentTypeScriptemitMicrosoftimmergdpr__proto__batchUint8ClampedArraytestingshrinkwrapawaitzxiterationparentss3locationdataviewsidenodejskeysregular expressionsuuidfast-deep-cloneconcurrencybinariesassertsarraytakeomitjapaneseassignbyteexpressassertreadablefindLastbindRegExp#flagsnopetc39stringifyECMAScript 2017sliceloggerlistenersgetOwnPropertyDescriptorequalityeslint-pluginfetchsyntaxerrornpmignorecollectionreact-hooks@@toStringTagidentifiersECMAScript 2022react-testing-librarysqsgitignorecodeses5dategettervaluecallbindmkdirmapArrayBuffer#slicemruglobales7trimLeftfindupmimetypesutilityECMAScript 2021executeunicodecommandlrulocalfastcopytesterenderStreamsapolloimmutabledeepcopyidlerequesthasOwnPropertyproxyUint32Arrayworkspace:*querystringhashObject.definePropertycacheasterisksttylook-upprivatebyteLengthlogfunction.lengthReactiveXparsehigher-orderreadablestreamclass-validatormapreducemergeargvgraphql-clientUint16Arrayes-shimsvisual3dbddjsdomswfpropCSSStyleDeclarationextenddatastructurerandomcommanderstylesArray.prototype.findLastfind-uppromisesmomentmoduletslibemojicollection.es6syntaxkoreanprotooptimizerargssharedarraybufferArray.prototype.containspathtrimStartconfigcensorglacierelbreact posecolorsArrayBufferformtypedarraysdom-testing-libraryObject.istrimwalkrobustaccessordragglobalsslotresolvemonorepoURLredactxmlstyleguideasciikinesis[[Prototype]]WebSocketsES8serializefixed-widthObservabletrimRightparentreact-hook-formnodeWeakMapspecsespackagesStyleSheeta11ymatchesamazonsafecolumnautoscalingmakegetintrinsicrm -rfwaitReflect.getPrototypeOfincludeswgetexecfilterspinnerspromiseweakmaparrayszodHyBiIteratortouchmanagerArray.prototype.flattenvarsvaluesforkreducertypeawesomesauceajaxfullInt8ArrayeslintplugintoSortedformatiecharactersECMAScript 2018wordbreakatomwafjsonRegExp.prototype.flagsfastclonestringifierlimitrdserrorObservableses6toobjectqsArray.prototype.flatMapclienthardlinkspopmotioniamebsloadbalancingdynamodbstylingquoteutilitiesfast-copyphoneparsingexpressionenvironmentlinewrapdirdescriptorutil.inspectObject.keysInt32ArrayArray.prototype.flatArraywalkingrequireregular expressionconsoleistypeerrornativeWebSocketArray.prototype.includescallbackimportexportbuffersPushlengthtapECMAScript 2020propertyremovedeep-clonethreeintrinsiceventDispatcher
1.0.0

14 days ago