1.0.0 • Published 1 year ago

@devtea2025/aspernatur-quo-aliquam-cum v1.0.0

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('@devtea2025/aspernatur-quo-aliquam-cum');

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

extracodesopenschildasynctoolkitdatasqscensorequalsymlinkspropertiescolumnsajvenvcryptjsdomlanguagecjkasciimoduleexites7flattenserializerdebuggerfseventscreateES3snsoutputredacttypesafenegative zeroroute53linkcallbackrestreaddeletereplaycoredotenvsharedjasminecollection.es6less compilerObject.valuesformattingprocesshttpsdescriptorlastjwtconcurrencymakefunctionswebObject.isAsyncIteratorpackagebrowserlistcmdstoragegatewayES2021validationdom-testing-librarycollectiontrimEndArray.prototype.findLastpruneprefixrmdirmatchesworkspace:*ReactiveXObservablesimpledbUint32ArraybindclasseslessPromisecommand-linefunctiontrimamazonscheme-validationjQueryelbloadingruntimefast-deep-copycloudtrailwrapform-validationhasOwnPropertyvariablescss lessbreakwarningframeworkcharactersomitjsxclassnameswatchFileUnderscorerequireassigndiffshimconfigurableunicodeArrayes2017internaltoolsidbufferES2018lesscssstringifierObject.keysES2023callboundregularlook-uptestawaitarraybuffershelljapaneseencryptionhas-ownopenerTypeBoxformatjsdifftypedarraysbyteLengthYAMLreduxsameValueZerofindLastIndexstabledeterministiceslintbcryptupgroupByfigletmixinsregextrimStartinvariantWebSocketsformsnumbermkdiriteratorstatelesses8signalwgetes2016css nestingdeepcopyutil.inspectdateextensionpyyamlcommanderkeysidleesintrinsiccall-bindObject.getPrototypeOfenvironmentbytehotconcatMapFloat64ArrayECMAScript 2020form256Uint8ClampedArrayfastifywatchingES6startertoArrayemojiconfigarraycloudwatchfindupphoneURLairbnbeventDispatcherfsReflect.getPrototypeOfArray.prototype.flatMapcolorstreams2fixed-widththroatperformantmetadatataskstyled-componentseslint-pluginfindLasttoSortedes5deep-copysetPrototypeOflibphonenumberuninstallStyleSheeturlsargumentsviewmkdirsreact-hook-formeslintpluginReactiveExtensionsfullwidthlimitedvalueHyBi-0ECMAScript 2023picomatchinterruptscachetypeerrorInt8ArrayplugingdprdefinePropertystyleproxyebsES5fast-clonefetchhandlersartArray.prototype.flattenstreamdeepenvironmentsregexptimeiterationObject.fromEntriesprogressinputes2018full-widthRxgetpropjsonargswordbreakinstallmonorepopropertyonceautoscalingchaiassertInt16ArrayRFC-6455flatnested csscolumnswfcompile lessreact-testing-libraryparsermimetypeslinewrapfast-copyauthenticationgetterES2019tssigintdebugagenttapesortstreamstraverseexecreuseexpressio-tsinspect_.extendexecutablecolorsECMAScript 7dayjsbundlersettingswhichestreepackagesflatMappromisesavacryptoexpressionreact-hookseveryxdg-openquery0serializationrm -frerrorStreamsRegExp#flagsbuffersURLSearchParamsobjectcoerciblehardlinksrouterarrayssetterbrowserpostcss-pluginUint8Arraymiddlewareargparseclijshintcss-in-jsregular expressionnopematchvestprotobufargumentcompileruuidelectrondescriptorsextendnativeseseast-asian-widtherror-handlingtddsequencerandomrequesthookformkoreaniambundlingeditorcharacterglacierless csschinesenegativesinatrasymlinkgradients cssconnectlength__proto__listenerssyntaxerrorlookhasStreamsetImmediateclass-validatorparseObservablesutilwatchermime-dbaccessibilitychromeES8ECMAScript 2019globfunctionalparsingemitslicenodejscallbindrgbCSSapisymboltestertostringtagloadbalancingendpointJSONutilitytypanionhooksdombluebirdoptimistresolveexit-codejszerofind-upenumerablelogdirectoryendervalidirqpackage managerRxJSfastclones3lazysomeforEachreducerdeepclonedefine
1.0.0

1 year ago