1.0.0 • Published 1 year ago
@tea062024/facilis-fugit-quam v1.0.0
@tea062024/facilis-fugit-quam 
Get the byte length of an ArrayBuffer, even in engines without a .byteLength
method.
Example
const assert = require('assert');
const byteLength = require('@tea062024/facilis-fugit-quam');
assert.equal(byteLength([]), NaN, 'an array is not an ArrayBuffer, yields NaN');
assert.equal(byteLength(new ArrayBuffer(0)), 0, 'ArrayBuffer of byteLength 0, yields 0');
Tests
Simply clone the repo, npm install
, and run npm test
traversesymboljestObject.assignframeworkES2016speedassertionURLreadabledombrowsersaferangeerrorasciilook-uphooksiaminstallmime-dbrobustfast-deep-cloneArrayBuffer#slicefromCSSStyleDeclarationregulartypereadablestreamfstypeerrorinputtrimLeftrm -frmakeprocessoutputttycollectioncolumnexit-codesetImmediatecloudformationStreamseventEmitterSetawesomesauceeast-asian-widthastbatchfunctionschinesearraydebugpostcss-pluginhasOwnPropertypersistentansiES2018functional.envbusyfastifytextmergespinnergetoptinvariantcontainsstringsyntaxerrorutilityshellpostcssnodeArrayBuffer.prototype.slicecharactersformatchromei18nidleReflect.getPrototypeOfparentsnodejslanguagees2017Uint32ArrayfindLastelasticacheECMAScript 2020hasOwnpluginmodulebeanstalkflattendataviewthroatlistenersimportexportkinesisminimalkarmaflatMaplockfilecsssharedarraybuffertyped arraysuperstructhigher-orderreusewgetassertFloat64ArraysetPrototypeOfserializefast-clonesidefastcopyupviewfast-copyparsingeventDispatcherES2023xtermappcensorartlrudirectoryECMAScript 5regular expressionsUnderscoreopenclass-validatores-abstractduplexCSSes2018lengthObject.keysexpressionTypeBoxstringifysignalwhichsinatraauthspinnersES5parenttslibstreamspushfastclonebundlerrestfularraybuffermovecolorsstylesheetaccessor-0has-ownmatchesslotcloudwatchperformantjsdiffpromisepnpm9fastgradients cssmixinspropertiesAsyncIteratorgetPrototypeOfincludesencryptionclassnamesdynamodbpathprotopreprocessorless cssdeepclonees8make dirhelpersairbnbwarningbddoptionlookbundlingdatecurlsymlinkswatcherkeycloudfrontstylesArray.prototype.flatjshintES2017visualimporteslintpluginvalidationprivatedayjsTypedArraygdprtrimStarta11yrecursivewindowsRegExp#flagssettingscommand-linejsonpathtapfindupreplayshebangschemaquerystringHyBicallbindsymbolssimpledbconcatECMAScript 2022predictableglaciergroupByfilterMicrosoftautoscalingcoreeventsiterationtostringtagcss-in-jsdependenciesSymbol.toStringTagfinddeepconfigurablehotECMAScript 3prefixwalkingES8macosglobalreact-hooksio-tsgenericsdeep-copyispackage.jsondefinerandomconcatMapECMAScript 2023joienvironmentsratemonorepoless mixinselbpipehttpruntimelimitprotobufreactBigInt64ArrayBigUint64Arrayoperating-systemnameassertslintshimredux-toolkitflatObject.definePropertyiteratecode pointsstreamtypesafetouchObjectwalkes-shimscorsreduceterminalrm -rfpropPromisebcryptaccessibilitywatchreact-hook-formsyntaxserializerconfigArray.prototype.filtersameValueZeroWeakMapcheckisConcatSpreadablelessjsonStyleSheetpackageefficientguidhttpstaskmomentmkdirsigtermargvtestsequenceprettyfull-widthbootstrap lessparseweaksetinferencemetadatatoSortedhasES7internalajvmochatakeWebSocketsFunction.prototype.namerdstapetc39boundwordbreakeslintconfigArray.prototype.containscoercibletypedarraysserializationconcurrencyratelimitlastelmgetmkdirptypedES2020Array.prototype.flatMapMapfseventsponyfillgradients css3buffersestreeUint8ClampedArrayprivate datatypeofchaioptimizerSymboldescriptionvpcecmascriptfulllogdatapreserve-symlinksrouteWeakSetqueuewordwrapoffsetnativeshrinkwrappicomatchredactinstallerIteratorprotocol-buffersstyled-componentsprunebrowserslistes5fetchrmloggingfindLastIndexeslintES2022toArraydeep-cloneInt32ArrayObservablesavafile systemstateECMAScript 2019apiurluuidutilObject.fromEntriesnegativeES2015uninstallformlazydeepcopyRxwhatwgmodulesES2019codesargparsepasswordsortmimetypeszerojsdomflagslinewraptoobjectcolumnscallboundcloneresolvesqselectrongroupparserworkspace:*ECMAScript 7validatetrimqswebreduxerror-handlingcache__proto__typeskeysvariables in csses2015proxyreact-testing-librarycallbackequalitycall-boundpyyamlenumerableECMAScript 2015packagesentriesUint8ArrayvalidReactiveExtensionsworkerstatelessArrayBufferextendhookformString.prototype.matchAlleveryemitstoragegatewaypropertyvalueReactiveXintrinsicsomeescapeless compilernamesiteratorauthenticationObject.isJSON-Schemafpscirculardom-testing-libraryarraysnpmES2021objects3toolkittimeeslint-pluginglobtoolsawsdatastructurecloudtrailnoperestmulti-packagenested cssreducerloadbalancingwatchFileconsoleless.jsomitECMAScript 2017toStringTagRxJSschemeindicatores7lesscsscomparermdirglobalsirqroutingl10nstablebyteOffsettesterebsendpointcollection.es6clisuperagentcomputed-typesconsumemruieswfjapanesemkdirsclassnameloadingmimeshamwidthhandlersreal-timecommandreadbyteLengthwatchingfixed-widthinternal slotargumentECMAScript 6util.inspectcharactertypanionscheme-validationqueryArray.prototype.includesajaxlibphonenumberonceECMAScript 2018wrapcallstdlibpositiveprototypeimmutablestylingerrorcall-bindoptimistdirUint16Arrayec2filejQuerybindcss variableArray.prototype.findLastfolderdefinePropertyform-validationidObject.getPrototypeOfamazonmatchAllmatchyamlexpressquote0autoprefixerhardlinksdrop_.extendstatusrequestidentifiersargsyupdescriptorsES6breakECMAScript 2021wafqueueMicrotask$.extendemrwriteESString.prototype.trimtestingslicewaitzodtypedarrayassigntermmiddlewarechromiumstructuredCloneprogressloggerbytefunctionjwttrimRightsharedrouterendermapreduceWebSocketdependency managerexitcore-jsvaluesarktypegetintrinsicworkflowRegExp.prototype.flagscss nestingfluxArrayenvironmenttdd256objObject.valuesbufferdotenvregular expressionvariablesunicode@@toStringTagthrottle[[Prototype]]dataViewtrimEndtelephonesearchmobilerequireutilitiessignalssortedPushnumbercompile lessclassespromisesjavascriptcolorsnsInt16Arraystreams2copyfast-deep-copysesbannerlimitedsymlinkdiffjasmineArray.prototype.findLastIndexdescriptorstyleguideasyncforEachremoveinspectinbluebirdRFC-6455
@npmtuanmap/aperiam-natus-quis-autem@npmtuanmap/ex-vel-expedita-impedit@npmtuanmap/psychic-guide@npmtuanmap/recusandae-recusandae-nam-et@npmtuanmap/sed-quo-nemo-rerum@npmtuanmap/tenetur-quisquam-quia-aliquam@npmtuanmap/ut-quas-amet-possimus@npmtuanmap/velit-esse-velit-magnam@npmtuanmap/velit-nobis-nostrum-nam@tea062024/a-soluta-accusantium@tea062024/amet-eum-occaecati@tea062024/architecto-eos-dignissimos@tea062024/asperiores-quae-ut@tea062024/assumenda-possimus-adipisci@tea062024/beatae-assumenda-dolorum@tea062024/deserunt-repellat-accusamus@tea062024/doloremque-exercitationem-asperiores@tea062024/dolores-magni-laboriosam@tea062024/eveniet-modi-ab@tea062024/facere-dignissimos-aliquam@tea062024/inventore-sequi-officiis@tea062024/maxime-aliquid-sunt@tea062024/numquam-quo-quibusdam@tea062024/officia-ratione-nostrum@tea062024/repellat-omnis-accusamus@tea062024/soluta-accusantium-a@tea062024/sunt-earum-nesciunt@tea062024/veniam-facere-voluptatum@tea062024/vero-ipsum-similique@tea062024/voluptates-nihil-nisi
1.0.0
1 year ago