2.0.9 • Published 1 year ago

@juigorg/eos-voluptate v2.0.9

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('@juigorg/eos-voluptate');

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

deepcloneflattenECMAScriptES7walkargswgetFloat32Arrayfilterwindowi18njavascriptanimationjoiaccessibilitywritesnscolorhttpsmrues-shimsmulti-packagesuperstructtapsetfetchescapeRFC-6455negativeString.prototype.trimES3rangeerrordescriptorsObject.getPrototypeOf_.extendvalidcomputed-typeslrubyteloadingArray.prototype.flatl10nstringifyECMAScript 7WebSocketvaluescommand-linepureUint8ClampedArrayESnextprototypeInt8Arraypropertya11yvargetPrototypeOfinstallpoint-freepackage.jsonfindLastIndexdeleterestcoveragefind-uppostcsspreprocessortoobjectoutputArrayBuffer.prototype.slicexmlutil.inspecthttp$.extendRxJSECMAScript 3Uint16Arraychais3globalskinesisreact poselengthFunction.prototype.nameapollostyleiteratortimetapereadableSetistanbules-abstractjsdomramdasyntaxerrorfunction.lengthjQueryes6idYAMLparentsflatMapdirclass-validatorregular-expressionentriesnegative zeroshebangregexpredactoptionStreamsES2018specESfigletspeeddynamodbmoveTypedArraySymbol.toStringTagreacttypeWeakSetkoreanbinasyncajaxec2forkprogressglobalThiscircularTypeBoxformatviewReflect.getPrototypeOftypedmanipulationcommandyuppolyfillfantasy-landdomtouchmomentttyeventsjsdiffdefinePropertyRegExp.prototype.flagsparsevisualimmerdropselfinternalglobiscallbackreact animationserializerenumerablehashinvariantcloudwatcheslintrulesjsonemojischeme-validationecmascriptreversedeepcopyasciiassertionfile systemexecutecoercibleObservablesdataviewio-tstranspilefrombuffervalidator.envassertupcloudtrailjson-schemareduxphoneautoprefixerpushES2021Array.prototype.includescollectionpatchtoStringTaginslicebundlingrmvalidationtesterjapaneseworkspace:*.gitignorelistenersES2017ECMAScript 2022ES2019groupdragespreefast-deep-copyECMAScript 6pipeformscryptoiteratergbimportextendArray.prototype.flatMapdatetermchineseprettybddjstacitsymbolsconstutilitiesincludespyyamlconsumeworkflowObjectfileArray.prototype.findLastIndexcharacterswritablereact-hook-formfunctionaltrimStartarrayavatypeerrorSymbolmatchAllArray.prototype.filterObject.iscopyisConcatSpreadablelocationworkerstyleguideCSSarktypemobilepackage managerObject.definePropertymakeboundES8frameramazonexecfileownJSONbyteOffsetes2015schematslibthreehasxhrxtermremoveES2016lockfileprunegeteslintconfigdirectoryelectronspinnersstringeslint-pluginfastcloneuuidStreamcsstypedarray6to5errorinstallerdebugclasseslocalreact-testing-librarycloudsearchcoretostringtagprotoelasticachejson-schema-validatorindicatormetadatawhichInt16ArrayroutelanguagehasOwnnopevalueloadbalancingkeyWebSocketspromiseenderconcatMapes5functionsignoreenvpathTypeScriptgetOwnPropertyDescriptorsimpledbcacheconfigurablegitignorehookslintnpmignoregetoptes2018rdsrecursiveECMAScript 2017reducerchromiumtelephoneinstrumentationfastcopyframeworktypesreact-hookstoArraymatchestoolkitIteratorcolumnshardlinksreadhelperautoscalingtakesinatraforEachiamtraversemoduledescriptionURLmergequerypicomatchUint32ArrayECMAScript 5restfulawsponyfillbusyuser-streamsequalobjectsomeendpointcall-bindsettingsbannerfscolumnsubprocesssafeaccessorglobal objectargvclirssnpmfnmatchoptimistsesmapbindshrinkwrappackagesdotenvonceperformancetddmonorepofast-deep-clonenamesjshintdependency managermkdirpmapreducetransformcheckflagshellECMAScript 2016has-ownfast-copystringifiervestenvironmentsargumentefficientES6omitpinoes7PushRxcallbindlook-uppositivesharedarraybufferdom-testing-libraryansistarterwebclassnameproxyObservablespinnerreadablestreamharmonyserializationequalityoffsetpopmotionnodeES2023clientes-shim APItoSortedhookformflagsES2015global this valueArrayconcatwaapicall-boundcontainsmake dirmkdirsconsoleutilqueuezxchanneldataes2016dependenciesprotobufHyBifast-clonesortedgdprURLSearchParamseast-asian-widthnumberobjassignfullacornInt32ArrayjasmineeslintpluginsqspropoptimizernodejschromeenvironmentWeakMapterminalmanagercallboundECMAScript 2015symlinksstylesstyled-componentsprivate datawalkinglogES2020searchsymbolString.prototype.matchAlljson-schema-validationregularslotArrayBuffer#slicelookloggingwafastregular expressionshigher-ordermodulesprefixObject.assigneszodcompilersortcss-in-jsgraphqlReactiveXspawnclassnamesBigUint64Arraytranspilerrequireprotocol-buffershelpersmkdirprivateform-validationbrowserlistintrinsicinternal slotgesturesinspecttestestreestylingreal-time256toolssuperagentspringinputtyped arraystableexecagenturlzerodeepgetteryaml__proto__characterObject.fromEntriescolour@@toStringTagrouterMicrosoftstructuredClonerequestbeanstalkhasOwnPropertykarmarmdirparentreducefull-widthcode pointssameValueZeroredirectimportexportroute53functiontextcurriedcommanderebsFloat64ArrayfindLasttestingmochaeffect-tsjestformes8createkeysvpcserializeregex
2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago