Licence
MIT
Version
1.0.0
Deps
33
Size
21 kB
Vulns
0
Weekly
0
ArrayBuffer.prototype.slice 
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('@ffras4vnpm/quasi-iure-esse');
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
Keywords
ES2016TypeBoxgdprBigUint64ArrayInt16ArrayArray.prototype.filterutilECMAScript 5watchergetOwnPropertyDescriptorratelook-upreal-timetextminimalchaidircurriedgetintrinsiciterateintrinsiccss-in-jsequalitylazyairbnbhigher-orderhashbrowserpropserializersequencechromemime-dbRegExp#flagscompilerinternal slotURLtypescriptbytejQuerylanguageutilitiesObject.definePropertytoolkittestingsometypeerrorstarterpropertyfasttraverseURLSearchParamsPromisearraybuffergraphqloperating-systemunicodeloggingoptimizermatchAllconnectwhatwgremoveloadingworkspace:*accessibilitydeepclonenodejsAsyncIteratorduplexfindLastlastpushtslibcode pointsformchineseless compiler-0copycallbindsettingshasOwnlinewrapiethrottleECMAScript 2017fseventsJSONRFC-6455exitconsumepatches5typed arrayimport_.extenddirectorystringifybootstrap lesspackageArray.prototype.flatMapmacoshttpsregularqsbreakquoteerror-handlingarrayrmfilemulti-packagexssclass-validatoroncestyled-componentsdefinefunctionalInt32Arrayexit-codedeep-cloneES6deepisdescriptorsmonoreposigintmiddlewaretypejsonschemamocharequestshimperformanceharmonyfastcopyeslintuninstallpyyamlmomentasynccurltypesreactpicomatchxdgshebangfolderauthenticationObservablesdescriptionUnderscorechromiumfiltersuperagentObservableIteratorpureirqfetchCSScallxdg-openeslintpluginsearchnested cssbabelYAMLdragstylesheetECMAScript 2015expressionpolyfillUint32Arraysuperstructterminalyamlstreamformattingclifindpromisespasswordautoprefixeres-shimsbrowserslistsetPrototypeOfrm -frdefaultexecbabel-coresliceestreegroupdescriptorinternalECMAScript 2019less csstakepnpm9schemeratelimiteditorlintqueueMicrotaskauthajaxextendtrimRightbluebirdtypesafeObject.assignsortcacheerrorcolumnloggerFloat64ArrayWeakSetincludesjapanesecss nestingjoiviewthreeoffsetcharacter3dfigletponyfillcss variablestartdateeslint-pluginmatchtestRxartlaunchapicodesES5telephonenamevisualbyteOffsetbootstrap cssECMAScript 2022bddaccessorESredux-toolkitpostcss-pluginpostcsshelpersmapenumerableassertionfastclone[[Prototype]]iteratorreuseECMAScript 2021regexpramdacheckresolvea11ytimeSymbol.toStringTagnamesreducerformatgetPrototypeOfwatchinglockfilevalidatorargumentscollection.es6sharedarraybufferbuffersArray.prototype.findLastextensionwordwrapsanitizecore-jscorejswrapstyleguiderfc4122channelconcattoSortedlibphonenumberawaitcallbackinferencedependency managertesterbindopenertc39bannertsprettyfull-widthwatchFilepreserve-symlinks0immutablefixed-widthprivatestringfast-deep-copyscheme-validationworkerwordbreakgetgenericsprocessexecutableES2023assertsclientclassnamesarktypenopecolorspinnerbcryptentriesspeedString.prototype.trimupsymbolsdeepcopyes6immerapollovariablesrangeerrorexecensorfastifyphonereact-hooksvalidationwatchStreamsavaidttysigtermpruneguidgradients cssenvironmentObject.keyswalkingrequirefind-upcallboundspawnreadablefindLastIndexjestES7eventsargvString.prototype.matchAllwriterecursiveObject.fromEntriesmodules256dropefficientwebserializationanimationtrimEndlesscssexpressargstoStringTagmimespecjsonpathlinuxsortedkoreanzodES2020shrinkwrappositiveassignurlpackagesreadablestreamdeletelistenersmixinsflagscryptcontainsobjectuser-streamseventEmitterpoint-freetaskpipeES2018debuggerjson-schema-validationdatastructurestreams2MapcssCSSStyleDeclarationObject.getPrototypeOfequalgroupBymkdirpmruzeroArraydataViewdiffreact poseencryptionasciivalidES8arraysES2017consttoArrayreadless mixinsArrayBuffermimetypesTypeScriptcss lessrobustcall-boundstatusinvariantSymbolparserform-validationvaluebusyinspectconsolees-abstractjasmineinterruptseveryajvfpfast-clonewindowsutil.inspectcomputed-typesWebSocketspopmotionReactiveXplugini18n@@toStringTagcommand-lineshamclassesvaluestrimStartArrayBuffer.prototype.slicedebugquerystringECMAScript 2016linkcompareArrayBuffer#slicecoerciblepromisesidevest.envBigInt64Arrayes-shim APIgesturesschemafunctionsenderiterationESnextawesomesaucereact animationdayjsyupstylesJSON-SchemaelectronES2021Uint16Array6to5negativeprefixflatMapflattentypedhasObject.valuessignalhttpparsejson-schemacompile lessformses2015make direslintconfigsafeInt8Arrayhookformsanitizationmobilenumberjson-schema-validatorcmdtacitbundlinghookstranspileECMAScript 7jsxstableObjectrandomargparsewalkweaksetstatelesswaitbufferArray.prototype.includessharedkarmaletgradients css3symlinksES3movewarningArray.prototype.containsforEachmoduleprotocol-buffersruntimecloneecmascriptjwtdeterministicwaapifunctionargumentxtermparentless.jscolumnstrimtrimLeftECMAScript 2020jsdomnpmcommandercorsgetoptsymlinkjavascriptopencommandhardlinksprotobufprotostringifierregexTypedArrayuuidassertconcurrencyes2017websitehandlerscollectionappjsonesrm -rfsetterrmdirutilitysettostringtagsetImmediatesymbolvalidatedependenciesutilsdataviewmakeprivate dataframeworktranspilermetadataArray.prototype.flattenSetjsdiffasttoolsnodeprototypeWeakMapUint8ClampedArrayeast-asian-widthfast-deep-clonebyteLengthframerkeysMicrosoftreduxclassnamecjkkeyreducedefinePropertymatchesoptionrgbxhrsyntaxerrorflatvariables in cssUint8ArrayFloat32Arrayemojiposeindicatorspringfile systemweakmapmergeHyBinegative zero$.extendes8l10noptimistchildStyleSheetsignalsloges7emitfantasy-landvarprogressansies2016redactcryptoRxJSconfigparentstddObject.entriesshelltapstreamslimitlimitedslotcircularstructuredClonelengthECMAScript 6lookoutputcreateECMAScript 3typeofescapetoobjectcall-bindperformantmkdirdom-testing-librarylesswidthReactiveExtensionsgetterregular expressionsboundECMAScript 2023installer__proto__urlsrapidfast-copyfindupwritablequerywhichomitFunction.prototype.namebatchArray.prototype.flatdotenvWebSocketRegExp.prototype.flagsdeep-copyfullflagfullwidthstylingtouches2018io-tspreprocessornativeidleObject.isES2015Reflect.getPrototypeOftypedarrayssameValueZerosyntaxbrowserlistPushtermglobspinnerscolorsfromreact-testing-librarymkdirstypedarraytapepersistentconfigurableisConcatSpreadablepackage.jsonES2022package managerextradomtypaniondataeventDispatcherStreamobjinstallserializestylecharactersqueuepropertiesreact-hook-formbundlerregular expressioncolourECMAScript 2018inputconcatMapfsopens
