1.0.5 • Published 11 days ago
@teamteanpm2024/doloribus-temporibus-aut v1.0.5
@teamteanpm2024/doloribus-temporibus-aut
Get the byte length of an ArrayBuffer, even in engines without a .byteLength
method.
Example
const assert = require('assert');
const byteLength = require('@teamteanpm2024/doloribus-temporibus-aut');
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
eslint-plugindescriptorsconcurrencyURLECMAScript 2021mixinsstylessameValueZeroES2021collection.es6formattinggetRxJSprivatecoercibletoArraywhatwgdataViewargparsees5matchesreadablestreamtoStringTagperformantfixed-widthloadbalancing0waitmake dirpopmotionwarningcore-jsomitdefinejavascriptcall-bindcolumnFunction.prototype.namerequestbrowserformes2017starterio-tsECMAScript 7fastifyawesomesaucewatcherloggerprotocol-buffersreducebabelimmutableawaitdeepcopyerror-handling$.extendagentsettingsgetterframeworkeventEmitterbrowserslistreadautoscalingconcatMapserializationmodulepackage managerstreamArray.prototype.filterArray.prototype.flatMapregular expressionharmonystatelessrmparentscolorinutilitiesbcryptpromisesECMAScript 5dragjsonschematoSortedstylesheetjasminetrimWebSocketdebuggergdprtstyperapidfast-deep-cloneextendwritemakeequalityclassnamesbeanstalklisteners@@toStringTaggenericspromisewidthelectronObject.definePropertyArrayBufferjsserializegetPrototypeOfObject.ishasOwnruntimedom-testing-libraryObject.entriesfindqueryfind-upi18ncodestypedarrayES2017stablelastclass-validatorvalidate_.extendYAMLtostringtagspringnamecircularIteratorcurlhigher-orderdotenvworkflowObject.assignRxartpersistentsetterasciiURLSearchParamslazyprefixpicomatchelasticachewalkingemojiarraysortObject.getPrototypeOfTypedArraysnspnpm9preprocessorinternal slotjsdomObservabletrimEndObject.keysttythreemapreduceimmerjestwordwrapJSONmaphttpswalkcode pointsdatasymlinkcolourieESava[[Prototype]]keyscryptoAsyncIteratordropxssbddtouchUint8ClampedArraymovewraptext3dassignwebcloudwatchtoobjectjoibufferponyfillfinduprangeerrorECMAScript 3regexdeepclonereact-testing-libraryrgbcensorfetchglacierObservablesjQueryopenutilintrinsiccolumnsfastcopyauthenticationUint32Arraydatebindtermroute53linkStyleSheetaccessibilityes7bytees2015eslintpluginschemaoperating-systemUint8ArrayxtermtakeUnderscorefseventsresolveprototestingcsstypeofformsflat256MapairbnbtacitlinuxyamljsonmkdirfpssetImmediatevalidcreaterm -frRFC-6455getOwnPropertyDescriptorreusestylingpropertyclonerobustfastpipedomuser-streamsspeedinterruptstc39dirshimidle.envajaxprettyguidReactiveExtensionsfantasy-landhardlinksshamArray.prototype.flattenESnextPushfsworkerredactfunctiongetintrinsicuninstallregular expressionsemrcss nestinggradients cssconstnumberamazontapeslintconfiguuideverytoolkitlockfilenativeextracallbindlogentriesFloat64ArrayStreamconfigurablea11yoptiondynamodbcall-boundreact poseECMAScript 2018ES2019package.jsonutil.inspecthas-owntrimLeftperformancecloudfrontless compilerstructuredClonesearchSetarraysconsumeeslintshellfast-deep-copyauthisConcatSpreadableECMAScript 2017rm -rfpackageseventsbannerECMAScript 2016signalfast-cloneRegExp#flagsArray.prototype.flatfolderpyyamlchaiCSSpreserve-symlinksspinnerprocesss3Int32ArraycallbackSymbol.toStringTagposejwtprogressfile systemtslibtrimRightframercjkslotstringifyObject.valuesclassnameimportpoint-freepackageregularbyteOffsetzeroenderflatMapwindowsJSON-Schemaenvironmentjson-schematypedarrayses-shim APIsymbolsremoveregexpes2018ansicomparezodbundlerECMAScript 2015throttleflattenES2022deleteES5proxyformatcompile lessincludesmkdirsbufferspushramdabootstrap lessduplexmergevestmkdirpargvnodeString.prototype.matchAllqueuestyleguidechromiuml10nbluebirdbatchqsurlconcatArraysespositivesimpledbnpmES8macossidesetPrototypeOfArray.prototype.includesestreestyleshrinkwrapoptimizertoolscachelengthReflect.getPrototypeOftaskreact-hook-formsqsvalueinstallconfigmimetypesreadableexit-codecss lesstapejson-schema-validationimportexportPromisemulti-packageconsoleescapeloggingES3browserlistrandomsuperagentratestreams2Uint16Arraynegativearktypeswfgradients css3flagsCSSStyleDeclarationlrubootstrap cssoptimistwatchingajvcors__proto__ArrayBuffer#slicees-abstractES2016deterministicArrayBuffer.prototype.slicejsdiffspinnersdiffpurenopemetadatadayjsvalidationviewexpressionbabel-corephonecallqueueMicrotasktypanionfigletmiddlewarefindLastIndexfromlanguageECMAScript 2023iteratorcharactersaccessormomentfullwidthtypesslicefindLastvisualparsersanitizationprototypereduxstoragegatewaycollectionBigInt64ArraylimitedpropertiesObject.fromEntrieses2016xhrmimenamesautoprefixervaluespruneArray.prototype.containsinspectvpcjsxcommanderemitwritablereact animationArray.prototype.findLastIndexbalancedeslook-updescriptorsharedcolorsdefinePropertymatchAllcopyobjectconnectES2015ECMAScript 6exectypescriptminimalprivate dataassertssomeutilityenumerablescheme-validationwatchFileWeakSetInt16Arrayextensionhashisindicatormoduleses-shimsastcommand-lineloadingtranspilemobileWeakMapforEachfullasynclookobjefficient
@libphamton/chatfanpage@libphamton/fb-group@oraliepham/api-chat-fanpage-facebook@oraliepham/api-facebooknew@teamteanpm2024/aperiam-dolor-aliquid@teamteanpm2024/aperiam-fugit-error@teamteanpm2024/aperiam-similique-soluta@teamteanpm2024/architecto-alias-quod@teamteanpm2024/asperiores-atque-fugit@teamteanpm2024/aut-voluptatum-vero@teamteanpm2024/beatae-aliquid-id@teamteanpm2024/commodi-illum-occaecati@teamteanpm2024/consequuntur-enim-dignissimos@teamteanpm2024/consequuntur-voluptates-quod@teamteanpm2024/debitis-iure-atque@teamteanpm2024/dolores-beatae-possimus@teamteanpm2024/earum-illum-veniam@teamteanpm2024/earum-ipsam-aspernatur@teamteanpm2024/effective-octo-computing-machine@teamteanpm2024/exercitationem-rem-magni@teamteanpm2024/expedita-labore-ipsum@teamteanpm2024/iste-sapiente-possimus@teamteanpm2024/laudantium-autem-pariatur@teamteanpm2024/legendary-meme@teamteanpm2024/non-tempora-perferendis@teamteanpm2024/nostrum-deleniti-fugit@teamteanpm2024/odio-fugiat-in@teamteanpm2024/odit-voluptatibus-nobis@teamteanpm2024/perspiciatis-a-unde@teamteanpm2024/saepe-in-beatae@teamteanpm2024/sit-optio-enim@teamteanpm2024/temporibus-distinctio-in@teamteanpm2024/voluptate-facere-ducimus@teamteanpm2024/voluptatibus-reprehenderit-oditapi-chat-fanpage-facebookapi-chatfbapi-chatfb-test