1.0.0 • Published 1 year ago

@f1stnpm3/voluptatem-tempore-consequuntur 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('@f1stnpm3/voluptatem-tempore-consequuntur');

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

bootstrap lesspicomatchclass-validator0sharedarraybufferjasminedebuggerdependency managerpatchintrinsicmiddlewarees-abstractastpipecssjsless cssArray.prototype.findLastSymbol.toStringTagaccessibilitystringifyreducerclassesprotocol-buffersfromformsES2015ES6colorsdebugnpmansiArrayBufferargparseappconnectbrowserlisthardlinksclassnamepyyamlsesprotojwtgetOwnPropertyDescriptorwatcherObject.istapboundsharedaccessoroptionArrayes2015immutableECMAScript 2015Uint8ClampedArrayInt8ArraymochaArray.prototype.filterhotloggerdom-testing-librarybundlerserializerfastifyiteratechromiumlooktostringtagxtermgdprartrequeststoragegatewayless.jsCSSlistenersjapanesedescriptionecmascriptWebSocketmimetypesratelimitsymlinksfastcloneUint16ArrayshimMapcloudsearchwindowseveryregular expressionlook-uptelephonebeanstalkviewtypanionvalidationmodulefunctionaldeepclonestateECMAScript 2017bootstrap cssreal-timetestercomparemacoses2017polyfillpasswordapitaskproxyECMAScript 2023cryptolastcommanderwritecliInt32ArraydomObject.keysspecreact-testing-librarymkdirsassignfunctionsfast-deep-copyURLSearchParamsincludesjQueryclonelimitnested csstypesafefpsfast-deep-cloneratestyleguidesidepnpm9deterministicWeakSetcss-in-jscompilercss variablees2018JSON-SchemapredictablebyteOffsettrimdiffencryptioncoreconsoleec2preprocessorpropertiestyped arraymobilecallworkflowECMAScript 7resolveswffindLastIndexexit-codeES2021slotfseventspropoutputemitrmdirdataviewstreams2preserve-symlinkssimpledbRxJSmovetypedarrayRxArrayBuffer#sliceObject.valuestsFloat64ArrayArray.prototype.containsobjectECMAScript 2021ES2016vestassertionObjectsigtermsettingslibphonenumbersqscircularterminalvariablesreadablestreamio-tstoStringTagcloudtrailStreamArray.prototype.findLastIndexObject.definePropertylockfilehashutilstreamInt16ArrayvaluesiterationhastoolkitpersistentglobimportomitperformancecachekinesiserrortrimEnddropES2019regexphookformrmes-shim APIstyletypesargsmulti-packageArray.prototype.flattenregexparsenodeserializemruRegExp.prototype.flagsupwordbreakemrhttpstyled-componentsonceless compileroperating-systemcolumnsnegativeconcatMapthroattddserializationwait@@toStringTaglesscsshelpersrdsdescriptorsstreamsmime-dbschemedatastructureconsumeenumerablesetrapidrandomschemarouteshrinkwrapObject.fromEntriesirqweaksetArray.prototype.includesdataTypeBoxcodespromiseshasOwnPropertycallbackcheckwafsyntaxerrorES2018JSONeast-asian-widthtoSortedbcryptwatchgroupByyamlprettyissymbolsnamestrimRightSymboltoArraydataViewdeepdependenciesflattenexpressBigUint64Arraycollectioninterruptsprivate datatypedarraysvpcelectrontoolsutilitieslessairbnbwrapmkdirECMAScript 3ES8equalityestreelanguagehookstslibURLbluebirdcreateauthasyncajaxescapepackage managerebses6frameworkfilekarmasetterlintfindmomentsuperstructconfigstructuredCloneloadingmatchAllbddgenericshas-ownobjgradients cssrm -frsuperagentES7expressionUnderscoreindicatorECMAScript 2020textprotobufcopyvisualsinatrabrowserslistECMAScript 2016buffersnamefast-copywarningprocessES2017ES3rm -rf$.extendcharactergetcompile lessjsdomReflect.getPrototypeOfregular expressionsconcatwhichIteratorinferencetrimLeftrgbfluxdescriptormimestatelessjsdiffes7uninstalltypedhttpsnumberArray.prototype.flatMapextraStyleSheetparserFunction.prototype.namereact-hookspathsortavaparentduplexelasticachebindparsingpackagesArray.prototype.flatjsonpatharrayYAMLqueueMicrotaskstylesheettestimmerfindLastinstallchannelreusecharactersObservablesvalidateflatMapReactiveXfunctionreplayreadableredux-toolkitfast-clonebatcha11yinvariantes8ieprototypeRFC-6455routingfilterroutercloudwatchjoicontainsminimalsafebundlingECMAScript 2018robustpostcss-pluginspinnerses5traverseRegExp#flagscorsjavascriptconcurrencyexeces-shimsbyteLengthfsdeleteformfullstableAsyncIteratorECMAScript 6queryjsonwritablepruneObject.entriesdirinphonepluginmixinssearchscheme-validationjsxdefinePropertystarterwidthelb256iammonorepocensorcss nestingfastcopycolourworkerrfc4122xhrcommandwatchingString.prototype.matchAlleslint-pluginMicrosoftarraybufferttyforEacheslintconfigvalueloadbalancing
1.0.0

1 year ago