1.0.0 • Published 1 year ago

@hutechwebsite/incidunt-fugit-voluptatum-iusto 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('@hutechwebsite/incidunt-fugit-voluptatum-iusto');

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

react-hook-formfast-clonepersistentspinnerSymbolInt8Arrayquerystringremovetakefolderdom-testing-libraryserializationFloat32ArrayrequireStreamjsdomeveryxhrstyleguidedeep-clonefindLastIndexdragexpressionconcurrencydatacurlfileagentnamesUint32ArraycensorjshintArrayBuffer.prototype.sliceidHyBiECMAScript 2018intrinsicfast-deep-copyinspectcompilerasciifindfswordwraparraysdynamodbES2022ratelimitrdsforEachclass-validatortelephoneextensionshaminferenceES2019scheme-validationfull-widthcss-in-jsnodetextlinkbufferes5identifierslaunchcachesomeshellmatchesframerhasOwnobjbeanstalkargumentparentsfilterprettyutilitiesregular expressionArrayBufferReactiveExtensionsoffsetprocesspostcss-pluginvpcformatttydeepcopycolumnsownregexprm -frschemaAsyncIteratorbyteOffsetECMAScript 3fromsymlinksECMAScript 2019sesavatrimStartes2015amazonArray.prototype.flatMapnegativeJSON-SchemabatchcolorgraphqltoArraycolourairbnbyupcore-jslibphonenumberpolyfillESnextconcattypeof$.extendtsspawntoolkittrimRightdiff-0appextendfile systemcloudformationhas-ownresolveshrinkwrapwidthArray.prototype.findLastbluebirdboundstreamsmobile_.extendyamlsqswhichqueueminimaleast-asian-widthmodulesdirectorymoduleconcatMapsuperagentshimansireact animationgroupslicetypedsnsCSSstdlibjQueryhelpersshebangflagsprotobufreadableoptimizerRegExp.prototype.flagsxtermoncelruprivateomitchannelpruneregexvestdayjsdirquotesymlinkcliawaitkeysfind-upstylesfunctionaljsdiffflagisclienttapecirculartrimLeftmkdiroptimistcallbackenvironmentwalkingcallboundconfigurableduplexcollection.es6japaneseArray.prototype.filterES7arraybuffercheckcolumntc39code pointsRxbundlersetPrototypeOf@@toStringTagwebeslintconfigutilbytereduxschemebusyparsingObject.entriesgetPrototypeOfbddloadingeventDispatcher.envstartertestingfulles2016walkargparseformsdeepastanimationES2020Array.prototype.flatspecvalidationstylingbyteLengthemitassertsWeakSetmochaimportexportpropertyextraes-abstractcreatecall-bounduuidentriesswfformcodesfastifyreactframeworkwritepnpm9runtimeescapeString.prototype.matchAllisConcatSpreadablereducerdeep-copyTypeScriptnpmcommandES2017simpledbwordbreakObjectsetguiditerationES2021es7eslintconfiggesturesgdprrandomperformantec2styled-componentsES5__proto__touchkarmaponyfillnodejsFloat64ArraysortedtypedarrayqsdeepcloneECMAScript 2022variablesartelectronestreetyped arrayglobalspackage managerargsroute53datavieweslintpluginelbdatastructureObject.assign256makeupmonorepocollectioncoerciblebreakconvertassertutil.inspecttypescriptcloudwatchinputObject.valuesIteratores-shimsarktypemimetoSortedURLSearchParamsjestcoreArrayweaksetl10nimmerTypeBoxwritablepropertiesflattenWebSocketseslint-pluginprototypeECMAScript 2020hookformECMAScript 2021ES2016environmentsjoihardlinkscmddropsymbolsassertionviewstoragegatewaystyleUint16Arraybuffers3dexedescription0apiroutingregular expressionsnativesorticonvsyntaxcharsetsearchvarspathtypeerrortypesafewaititeratorhigher-orderCSSStyleDeclarationbundlingjavascriptfindLastfindupmkdirsmomentRegExp#flagsECMAScript 2016terminaltimemovetypeString.prototype.trimdotenverrordefinePropertyPromiseemrroutetypedarrayschinesedefaultproxyjsonpathprivate dataqueueMicrotaskindicatorcommand-linepromisesObject.keysdatedataViewapollochaigenericsrmdirsameValueZeronumberYAMLloggingredux-toolkitio-tsautoprefixerfunction.lengthinstallerjsxStreamsstatelessprogressSetrgbglobworkspace:*wafpackage.jsonstringbannerexecrapidECMAScript 5characterspicomatchinternal slotfunctioncolorsinvariantfigletgetopteventEmitteraccessibilityparsermake dirlastfastmkdirptestera11ylookserializelook-upmimetypesinternalsetImmediatepushcloudsearchurlstypanionlimitedpromiseespreechromeflatenumerablejasmineES8safewebsitefast-deep-clonetermrfc4122reducepatchoptionthreestreamReactiveXnopepropfixed-widthphonexdg-openArray.prototype.findLastIndexes2018importawesomesauceECMAScript 2023kinesisRFC-6455calliamglobalinvalidajvjsonBigUint64Arrayqueryenvurlfast-copycommanderi18nweakmapgetOwnPropertyDescriptormergeECMAScript 2017cjkobjectredactES2015openerform-validationrangeerrorformattingeditorecmascriptES3childbrowserslistendpointiexdgcloudfrontsuperstructperformancebrowserlistsettervalueMicrosofttddawsES2018loggerstartenderrecursiveUint8ClampedArraystringifierkeycomputed-typesvalidatecopyincludestoStringTagstringifytraversewrapargumentshttpprotoautoscalinglistenersInt16Arraydependency managerhelperreact poseWeakMapnamehasmapreducereact-testing-librarymappackagegroupBymetadataPushtypesrm -rfECMAScript 2015Function.prototype.namedommruObservableutilityreadablestreamrobustArrayBuffer#sliceiterateUint8ArrayopenslanguagevaluesfetchObservablesimmutableefficientpopmotionidlelintspinnerses-shim APIregularopenprotocol-bufferstappreserve-symlinksteststreams2executabletostringtagtrimcryptoemojiicupositivetoobjectloadbalancingbindzerolengthbrowserprefixcontainsTypedArrayinstallargvwaapiworkflownegative zerouninstallmulti-packagefastcloneStyleSheetfunctionshooksredirectthroatECMAScript 6descriptorsequaljsArray.prototype.includeszodArray.prototype.containselasticacheES2023workerglaciers3Reflect.getPrototypeOfcssmatchAllajaxstructuredCloneObject.getPrototypeOfkoreancloudtrailasyncwarningES6ESfpsparsedependenciesgetterECMAScript 7Object.fromEntrieslogesequalitydeletelockfile
1.0.0

1 year ago