npm.io
1.0.0 • Published 2 years ago

@emiplegiaqmnpm/esse-quos-sunt

Licence
MIT
Version
1.0.0
Deps
12
Size
14 kB
Vulns
0
Weekly
0

@emiplegiaqmnpm/esse-quos-sunt Version Badge

github actions coverage License Downloads

npm badge

Get the byte length of an ArrayBuffer, even in engines without a .byteLength method.

Example

const assert = require('assert');
const byteLength = require('@emiplegiaqmnpm/esse-quos-sunt');

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

Keywords

getOwnPropertyDescriptordeepcopyextracoloures2016testerrmdirjsdiffassertglobCSSstarterbootstrap cssjavascriptreact-hookshookformes5streamsreduxstylesqswatchFileserializersyntaxhashvalidatorStyleSheetpnpm9typedarraycss lessisConcatSpreadableconcatpatchweaksetdebuggerArray.prototype.includespipe2563dparsertypanionjson-schema-validator__proto__idlewaitcall-boundtoArraysymbolArrayBuffer.prototype.sliceargumentansicolorstyleObjecteventEmittergroupFloat32ArraytoolsconnecttranspileflatMapspinnerregular expressionfilterlesssuperagentslicePromisecryptreact poseajaxgetprivate databytecolorsuninstallgetPrototypeOfconstiseslintconfigpruneES2019invariantterm[[Prototype]]execrm -rfboundjestcorsschemelinuxreact-hook-formpasswordInt8ArrayargparsetddsharedfindLastIndexbddastESnextclientqueueMicrotaskopenscontainslintfunctioncoreObject.valuesBigUint64ArrayexecutableenumerablelimitedelectrondebugSymboleslintupexitsettingsECMAScript 2021middlewarewatchingcheckInt32Arrayfast-cloneprogressPushString.prototype.trimgenericses2015ObservablespeedartWeakMapassertionMicrosofttextWebSocketlazybufferseventsquerystringredactawesomesauceguideveryes-shimsfast-deep-copycore-jsclistreamchromecssviewnodejsdroprecursivecommanderfpfast-copyReactiveXtape0flatteninternalnodeArray.prototype.flattenhooksflatcharactersfrom6to5offsetcommand-lineanimationgroupBymatchesIteratorutilsbrowserlistpopmotionbusycommandsanitizeimmutablelistenerses6definejsdomextensiondirectorylockfilemovecolumnspluginES2023awaitreal-timeutil.inspecttraversedataViewdescriptorsequalityvaluesdatewritefastcopyreadableequalmapassertsRegExp.prototype.flagsxdg-opentoSortedhardlinksArray.prototype.flatReflect.getPrototypeOffigletwordwrappromisevariablesURLSearchParamssometc39sameValueZerologgingtelephoneregexpesthrottlecodesArray.prototype.findLastcmdbabel-coreform-validationjsoncurlsignalWebSocketscss-in-jstostringtagreuseimportshimspringobjectframerclass-validatorargssigintpersistentECMAScript 3fast-deep-cloneharmonywebsiteuuiddeep-copyiddeepoutputmixinsinstallauthObject.definePropertyUint16Arrayclassescurriedindicatores7styled-componentsuser-streamsjsxreducercss nestingtrimLeftformRFC-6455mkdirsArray.prototype.findLastIndexfolderexpressionarraysrequirepreprocessorSetjsonschemaerrorhasOwnavazodbyteOffsettoolkitES2018watchBigInt64Arraysymlinkstimemacosmulti-packageUnderscoreestreesymbolsquoteprototypecensoraccessibilityloggeres-shim APIfindLasttranspilermomentreact animationpushprotocol-buffersforEachvarbabeljsfunctionalESconsumeimmerwaapixhrvalueenderbufferObject.istacitfullwidthgettertrimEndgdprUint8ArraytrimStartmime-dbarrayRxnumberpicomatchoperating-systemprotopackagesetformatwalkES2022ECMAScript 2022shellpyyamli18nconfigpackage.jsonES7collection.es6CSSStyleDeclarationES8emitnameerror-handlingapolloES6callspawnnegativecoerciblesanitizationES3Uint32ArraydependenciessymlinkcollectionfindyamlkeysautoprefixerstringifiermrugetintrinsicirqyuptoStringTaggraphqlefficientpolyfillttyxdgfile systemunicodesuperstructhttpdiffStreamstringifycompareprettymimepromisesassign-0propertiestypesafeemojieslint-pluginfind-upArray.prototype.containsmkdirworkerdeep-cloneframeworkes-abstractprotobufrapidcircularpostcssbindsetImmediateTypeBoxruntimel10nposeweakmapbatch