1.0.1 • Published 13 days ago

@npmteam2024/neque-dignissimos-est v1.0.1

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

@npmteam2024/neque-dignissimos-est 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('@npmteam2024/neque-dignissimos-est');

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

wgethooksfindLastIndexrapidgradients cssthreeutilsgenericssearchArraygdprgetMapregexajvargumentclientclishimdefineutilitiesInt32Arraygetterxtermquotetyped arrayArrayBuffer.prototype.sliceSetnativetapecensorlastphonedropwritablezerochannelObservablesdeep-clonejsonpathweakmapstylesheetshaminstallstylingcore-jsargparsereadtranspilertaskworkerformsrm -rfspeedshellqueryPromisetrimEndtypedarraysemitwhatwgcall-bindredux-toolkitscheme-validationshrinkwrapfind-upStyleSheetwebsitenameregular expressionsflatdeepcopyoptimizerjsdiffchromeopensreducerposetrimStarttoSortedexecbufferenumerablejapaneselimitparentObject.definePropertyless.jsbytepropertyinstallermrufastcopyUint32ArraytranspiletimeSymbolobjectUint8ClampedArrayframeworkoptimisthookformfilterbrowserlistnpminterruptsjson-schemaestreexsslinkjsonschemauninstallnegativemergecss-in-jsmimetypeswatcherfigletenvjsxasyncpathmatchdataviewURLObject.keysonceclass-validatorArrayBufferawaites2018efficientwatchsyntaxerrorcss nestingmake dirsigintfull-widthstartprefixcomputed-typesRxclonehttpFloat32Arraywalkvisualencryptionlazyparsees7throatconfigcolourfullwidthmacosRFC-6455spinnertypeerrorequalitycryptuuidpromisessharedarraybuffereventsrequirees-shimscall-boundreact poseES6functionponyfillmodulecallboundcjkmimeUint8ArrayES3stringifierpreserve-symlinksstatelesselectronfast-copyfile systemjwtiterateObject.assignopenerfindupvalidcharactervalidatoridlestreamglobECMAScript 2016rmdirconnectwaapiUint16Arrayreact-hooksconcurrencylinuxchromiumarraybufferflagsratelimitpicomatchrecursivemkdirvaluesform-validationWebSocketspnpm9superstructreact-hook-formappremovetesterauthquerystringES5equaljQuerykeyslengthqueueES2023apollowrapes6classnamefunctionalcolumnsvariables in cssescapeES2015enderBigInt64ArrayURLSearchParamsrmObservablegetOwnPropertyDescriptorlaunchwidthdom-testing-libraryflatMapfixed-widthbundlerchaipoint-freeslotObject.valuespluginfast-cloneTypedArraycolorES2022iefastinferencefromArray.prototype.findLastObject.ispolyfillMicrosoftschemabluebirdpersistentharmony
1.0.1

13 days ago

1.0.0

13 days ago