1.0.0 • Published 16 days ago

@devtea2025/quos-dolor-impedit-ea v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
16 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('@devtea2025/quos-dolor-impedit-ea');

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

chromiumcontainspropertiesoncees6searchrm -rfuptypesafeES2019spinnerregexpexit-codeboundObservableartremoveflatMapdropprefixkeysapijsdifftapelruhotBigInt64ArrayreadablestreamrecursivenumberreduxECMAScript 2018trimEndescapepicomatchtsES2015es-shim APIconcurrencyassignObject.entriesroute53loadingformatindicatorstyled-componentsenderencryptionautoscalingReactiveXunicodeloadbalancingpromisetoolsproxyassertsweakmapObject.fromEntrieshttpspluginnamesmatchlimitedSymbolextrachannelsyntaxerrorlockfileuuidfromfullcachecharacteres5zodInt8Arrayopenerasyncwatchmapreduceinstallcopychromeeditorpnpm9globalamazonstylesheetpolyfillpipeObject.islinkexecoperating-systemJSONstarterprivateECMAScript 2023npmes2018sliceclassnamefind-upconcatMapnegative zeromomentgetterAsyncIteratorsharedarraybuffertoobjecttypanionparsingmetadatabrowsercloudfrontInt32Arraysharedcomputed-typesqsemrES6flagequalnameperformantnopeconsoletapthroatglaciershebangredactbootstrap cssvarsarraybuffertext-0estreeautoprefixerviewmonorepoinspectimportmapchaipropertycolourvariables in cssrm -frspecnegativefixed-widthequalityeverysortedxdg-openwebless mixinslistenerscloudformationmkdirsdayjses2016sigtermcollectionmimeopenUint32ArrayES7walkloggingECMAScript 2020toArrayObject.getPrototypeOfvariablestypeinternalrequestfindLastcompilerwordwrapminimalES2023descriptoroffsethardlinksio-tssymbolobjHyBifunctiontakefast-clonewritebddPushlinuxmake dirl10nmoveairbnbstylesefficientstyleiterationlastpackagescrypttrimRightparentsbrowsersliststateJSON-SchemanodecharacterseventEmitterPromisefindupregularreadablefindLastIndexURLdeepcopytrimStartconfigurabletostringtagttystatusInt16Arraycode pointsmime-dblaunchimmutableredux-toolkitarrayentriesprotocol-buffersstoragegatewaycolumnes7filterMapserializerbyteOffsetfile systemsessymbolsstringifiermrucheckbrowserlistcallbindprocessArraymiddlewareownmimetypesbreakcloudwatchArray.prototype.includesendpointStreamsdomlook-upArray.prototype.filterlookWebSocketsparseargvinferenceinputbufferebsjsdomless compilerdependency managerworkspace:*superstructtrimstructuredClonefpsES2018setteridleaccessibilityes8nodejshookformreades2015sigintdataviewprototestingurlsreactString.prototype.matchAlljQuery0ES3Rxgetintrinsiccall-bindsortintrinsicsomesymlinkeslintdeep-copyhigher-orderdynamodb256bundlings3wordbreakcloneES5stringifyFunction.prototype.namebusyESnextwidthperformanceBigUint64ArrayECMAScript 7rgbIteratorreuseECMAScript 3styleguidemacosrandomTypeScripttypedarraysnsconfigrangeerrorweaksetpreprocessorwaitprotobufdefinecreateponyfillcodesgetoptlivedatastructureelbvalueopensbatchomitECMAScript 2015rfc4122react-hook-formlazyES.envclass-validatorec2vpcObject.definePropertypropzerormshrinkwrapmatchesgroupBypredictablevisualswfdebuggerregexratelimittypeerrorjapanesepatchextensionjasminesetPrototypeOfi18nscheme-validationcircularFloat32Arrayajvutilutil.inspectelectronYAML__proto__fullwidthprogresshas-ownES2020syntaxyamlrestfulextendvalidationArray.prototype.flattendefinePropertySetimmerdeterministiccore-jsinternal slotcssframeworkspawnwhatwgArray.prototype.findLastIndexbcrypteslintconfigconnectArray.prototype.findLastrobustuninstallwatchergetPrototypeOfprototypelanguageinvariantquerystringformsserializationlessarraysECMAScript 5ES8urlauthenticationsetES2016fileStyleSheetUint16Arraytddshimexpressionexecjktermlimitpositivetslibes2017schemeECMAScript 2016fseventsMicrosofttimegetregular expressionsappfetchtoolkitbindprunevalidtestes-shimsfast-copywebsiteform-validationtypeofoutputRxJSkarmaidxdgargparsewatchFilemergecss lesschildcmdArray.prototype.flatdiffES2022ECMAScript 2021requirecollection.es6dataViewreact-testing-libraryreact-hooksECMAScript 2019statelessrmdirdom-testing-librarycall-boundpreserve-symlinksECMAScript 6pathiamjsgloblengthfunctionsajaxenvironmentgradients cssWeakMaptraverseargumentfull-widthjestflagsdirstreamstelephoneargumentsquery
1.0.0

16 days ago