1.0.0 • Published 14 days ago

@wemnyelezxnpm/officiis-earum-laboriosam v1.0.0

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

@wemnyelezxnpm/officiis-earum-laboriosam 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('@wemnyelezxnpm/officiis-earum-laboriosam');

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

macoswordbreakmapObject.isdeterministictypedextendsyntaxinstallcss-in-jsaccessibilityuninstallharmonycallbackcomputed-typespromisedropcolumnsuuidpackagebootstrap cssCSSeditorstyled-componentsUint8ClampedArrayECMAScript 5syntaxerrormimeES5ES2018processnodejscolumnlessponyfillmochacalldeletegenericswritablereadablettyformattingclientObservablesjasminecolorconfigzerostyleutilitieseventsmovetypedarraysURLSearchParamsbusyxsshardlinksSymbol.toStringTagtsexecutabletrimEndvarassertionperformanceruntimecensorstreamsyupawaitapollowarningavaargparseshaminferencebounddragInt32Arrayregularkeynopeopensfolderzodfast-deep-copylookmonorepodirspinnerArray.prototype.flatMapECMAScript 2017japanesebundlerUint16Arrayprivatedotenvdescriptorstringtoobjectes-shimsdeep-clonedefinePropertyl10ncodesjsonpathES2016argstoSortedsymbolsxdg-openconsumelesscssassertsiteratorforEachweaksetECMAScript 2021getoptdeepclonebindreadcode pointsnegative zeroajaxbyteLengthES2021childeslintconfigsetsigtermsafesliceWeakMapexpressconcatMapchannelvaluesfindLastIndexlrujson-schemabreakestreeFunction.prototype.nameECMAScript 7typebrowserscheme-validationes8eslintpluginnamespersistentchromeratejson-schema-validatorendermatcheschromiumfull$.extendkeysjsonschemafromflatpyyamlsideoutputansihassymlinkfunctionaldeeprm -frfigletprivate dataTypedArrayhooksWebSockettextcompilerescontainsregexjson-schema-validationmake dirtapeWeakSetES20206to5propasciiECMAScript 3ECMAScript 2022queryassignfastcopylogsanitizationvisualxhrloadinghttpPushUint32Arrayparentsmime-dbtrimRightoptioncss lessECMAScript 2020shrinkwrapwalkingmatchAlldatedatatostringtagsymbolvalueECMAScript 2016coercibleformidlebabel-coreless cssless.jsgrouprequiretakepolyfillclassnameprunewgetInt8Arraykarmai18ngetOwnPropertyDescriptorform-validationReactiveExtensionsiterationfseventstimeprefixtypedarrayarktypestartunicodedescriptioncorspromiseses-abstractJSONsigintpoint-freepurepatchprotobuf@@toStringTagbootstrap lessreact-hook-formstringifierRegExp.prototype.flagsdom-testing-libraryvestchineseES3propertiesObservableerrorstatelesses6Setpositivecollectionless compilerjsonspeedbuffersdatastructureterminalregular expressionlibphonenumberconcurrencyeveryStreamsHyBimulti-packagergbminimalcorebluebirdArray.prototype.flatposetc390popmotionprotocol-buffersenumerablereact animationECMAScript 2018typeerrortypeofclassnamessanitizecolourpreprocessortestingreal-timeJSON-SchemaindicatormiddlewareschemaObjectgradients css3transpilerutilreusecacheeslint-pluginquotecommandredux-toolkitmatchvalidsuperstructes7call-bindtermnativemetadatatesteroptimistdomquerystringdeepcopytasklockfileprotocss nestingasyncdebuggerformatsettingsmomentwriteObject.fromEntriesObject.keysES2015tacit-0byteOffsetduplex
1.0.0

14 days ago