1.0.4 • Published 10 days ago

@teamteanpm2024/explicabo-voluptatum-autem v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

@teamteanpm2024/explicabo-voluptatum-autem Version Badge

github actions coverage License Downloads

npm badge

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('@teamteanpm2024/explicabo-voluptatum-autem');

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

wordwrapcurriedlazynopeFunction.prototype.nameregularsanitizeECMAScript 5Symbolfastclonel10nsigterminstallpathfast-deep-clonepropdragpackagesresolveopenweaksetfiletoolkittypedarrayuninstalldefinePropertystyleguideBigInt64ArrayviewemojivalidationarraysbundlerslicecryptoUint16Arraybrowserlist__proto__findESnextperformantdom-testing-librarytimeObject.iscollectionframeworkdotenves2016css lessbusyweakmaphttppropertiesidredactasttddmonoreponested csses8interruptsdirinstallertouch3dbundlingfsInt32Arraypreserve-symlinksxdg-openECMAScript 3performancefunctionObjectvisualString.prototype.matchAllsymbolutilgetoptTypeBoxES2017jsonschemahelpersECMAScript 2023StyleSheetvariables in cssReflect.getPrototypeOf6to5jasminees2015exitArrayBuffertypedduplexenvironmentformattingUint8ClampedArraytacitmovetypescriptjson-schemaconcatMicrosoftspawnstreamsargsmkdirspnpm9openerjsdiffframershebangxdglogdescriptorassertschromiumserializationcollection.es6URLparserbrowserslistimmutablechromecomputed-typesconfigtestassertionregexpworkspace:*estreetranspilerreadableECMAScript 2016mime-dbponyfilldirectory0readablestreamdeep-copymoduleSymbol.toStringTaglruWeakMapwalkingexit-code$.extendhashrateanimationi18nstructuredCloneprivateprogressRFC-6455bluebirdreducernameFloat64ArraymatchAllcall-boundfastcopycolourES8xtermuser-streamsstartvalidatebatchtc39ansicallboundcolumnswebqueuecoresignalhttpsArrayBuffer#slicetakeECMAScript 2021trimStartsortedlastonceregular expressionspyyamlfantasy-landtrimEndtrimRightcss nestingflagstatuslengthvaluepicomatchwatchingjwtWebSocketcryptwarningtraversetypeofdeterministicloadingeast-asian-widthnegativefseventsnamessameValueZerormdirsymbolsrm -rfpruneawaitesreact-hookstypesglobmomentchannelgradients css3Array.prototype.includesposereuse[[Prototype]]io-tseventstoSortedsideexecode pointsgroupauthtrimLeftconnectgroupByfindLastflatbddutilseventEmitterquerycallsyntaxzodes2018Array.prototype.flattenbufferconcurrencycolumnassertnodejsvarInt8Arrayfastifysettingscoercibleoptimiststringoffsetfast-deep-copy
1.0.4

10 days ago

1.0.3

11 days ago

1.0.2

12 days ago

1.0.1

13 days ago

1.0.0

13 days ago