Licence
MIT
Version
1.0.0
Deps
8
Size
15 kB
Vulns
0
Weekly
0
@emiplegiaqmnpm/cupiditate-excepturi-necessitatibus 
Is this value a JS ArrayBuffer? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.
Example
var assert = require('assert');
var isArrayBuffer = require('@emiplegiaqmnpm/cupiditate-excepturi-necessitatibus');
assert(!isArrayBuffer(function () {}));
assert(!isArrayBuffer(null));
assert(!isArrayBuffer(function* () { yield 42; return Infinity; });
assert(!isArrayBuffer(Symbol('foo')));
assert(!isArrayBuffer(1n));
assert(!isArrayBuffer(Object(1n)));
assert(!isArrayBuffer(new Set()));
assert(!isArrayBuffer(new WeakSet()));
assert(!isArrayBuffer(new Map()));
assert(!isArrayBuffer(new WeakMap()));
assert(!isArrayBuffer(new WeakRef({})));
assert(!isArrayBuffer(new FinalizationRegistry(() => {})));
assert(!isArrayBuffer(new SharedArrayBuffer()));
assert(isArrayBuffer(new ArrayBuffer()));
class MyArrayBuffer extends ArrayBuffer {}
assert(isArrayBuffer(new MyArrayBuffer()));
Tests
Simply clone the repo, npm install, and run npm test
Keywords
serializedebuglistenersa11yWebSocketthrottlesyntaxerrordeep-cloneextensiones5awesomesauceprogresssomearrayiterateestreenpmECMAScript 2020offsetutilsdescriptionjsdomreducecall-bindairbnbcolourframeworkisbuffersArray.prototype.includesbootstrap lessprotoES6json-schema-validatorWeakMaparktypeopensECMAScript 2017includesshebangarraybuffervalidsanitizationtoSortederror-handlingFunction.prototype.namedependenciesmkdirseslintconfigsymbolweaksetless cssprunedefinestartObject.getPrototypeOfflatMapxtermSetInt8ArrayresolvetacitloggerPromisereadablespeedlesscssvariables in csspurebundlingcolorsarraysECMAScript 6jsonprotocol-buffersclienterrorfpcollectionentriesassertionwhatwgJSONunicodeBigInt64Arrayratelimitshelljwtconstcallbindfigletharmonystabledatecircularclasseslanguagejsdiffdescriptorsbounddomdataviewvaluegetoptcreate0appasserts__proto__CSSStyleDeclarationgetOwnPropertyDescriptores7tsstreamseast-asian-widthbootstrap cssperformancerm -rfmonorepoStreamcodesRxtrimjasmineES2020launchreadablestreamhelpersidlesuperagentproptypedarrayclassnamesdropcolumnsupmocha[[Prototype]]linuxio-tsnativeguidreact-hookstesterpathsafeeslint-plugin@@toStringTagreact posecss nestingmulti-packagetostringtagfast-copyajvfunctionsReactiveExtensionsdayjsfind-upmimetypesxdgURLES2023prototypequerystringregular expressionpackage managertddimmerfunctionalonceInt16Arraydeep-copyjsonpathreact animationtypesafemimeArray.prototype.flattentypedencryptionprotobufterminalomitoptimistmacosdeleterm -frwalkingRFC-6455deepcopyES2016pushurlsuuidmodulejapaneserequireawaitvisualBigUint64ArrayeventEmitterlookfilterclassnameutilityworkerqueueMicrotaskmodulesArray.prototype.flateslintwatchcompilerdotenvObjectcontainswritetranspileenderbannerchromedragtrimEndpatch$.extendmatcheses6loadinggettertasksearchdatalrudifflengthgroupBychaiapolloObject.isvariablesstatelessnamelook-upstructuredCloneES2018ecmascriptHyBitrimStartparenttermregularruntimeArrayBuffer.prototype.slicees2017mobilesetImmediateStyleSheetmkdirpconsumereducerTypeScriptReflect.getPrototypeOfparentseventsexpressinternalassertieTypedArrayflatES3efficientweakmapflagspropertiesdirectoryglobcollection.es6sideobjjQueryUint8ArrayfetchReactiveXbluebirdbrowseranimation-0childvarmrupoint-freeECMAScript 5defaultCSSless compilertypepasswordstylesESnextfast-deep-copy3dindicatorimportobjectUint8ClampedArrayInt32Arraysetdom-testing-libraryObject.assignforEachaccessoriterationreusetoobjectrfc4122Array.prototype.findLastpostcssregexchromiumdirhastestingArray.prototype.containssymbolscoerciblefullIteratorpostcss-pluginarttakeqscorses8utilslotECMAScript 3ES8lastes2016serializationtypeerrormixinsschemebabelnodejscomputed-typesfromObject.valuestc39command-linewarningcalldeterministiccode points256expressionequalityponyfillgetvalidatelinkregular expressionsreduxsymlinkastgesturesbcryptrgbescapenamesuser-streamszeromapstringifierslicejoiinterruptsECMAScript 2021environmentwritableUint16Arrayfsemitpicomatchexit-codecurlbrowserslistformlimitedansitoArraygradients cssspecArrayBuffer#sliceFloat64ArraysymlinksurltoolscallbackinstalltypescriptquoteenumerableconcurrencyutilitiesmetadatasortedformatisConcatSpreadablechineseargvnegativeextendopenless mixinsObject.entrieshooksfantasy-landtoStringTages-abstractTypeBoxtypanionspawnmime-dbauthObject.definePropertypyyamlqueueoperating-systemtimerapidObservablecall-boundconcatMapgetintrinsicoptimizerbytewalkdependency managerlimittrimLeftpluginaccessibilitypropertyjavascripttextfolderi18nECMAScript 2015shimconfigasciilogUint32Arraycurriedphonetypeofnumberstreams2util.inspectECMAScript 2018ECMAScript 2022argsform-validationwaitwordbreakposefindLastclass-validatorcharactersparseprettyargumentssuperstruct
