2.11.69 • Published 1 year ago

@hishprorg/doloribus-vero v2.11.69

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hishprorg/doloribus-vero 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('@hishprorg/doloribus-vero');

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

varES2015rapidapiaccessorqueuesesglobal this valueback-endruntimenegative zerostatushooksrdsmapreducetelephoneECMAScript 2017findLastomitlocalchromium6to5dependenciesECMAScript 2016widthnodejssymboltrimEnddataviewloghotreact-hooksindicatorpersistentgradients css3error-handlingcallboundinvariantajvPushprivate datacallbindgetterresolvesuperstructcryptshrinkwrapes5walkcommand-linereducerexpressiondatarobustletjson-schema-validatorsignalsredacttakeArrayBuffer#slicelinuxjoiarrayvalidationfileIteratorargvdefinePropertywaapirequesteventDispatcherweakset.gitignoreinterruptssymlinknumberES2022ES8jQueryAsyncIteratorsetter__proto__specgraphqltraverseawstc39assertqueueMicrotaskprefixutilsgesturesspringapolloJSON-Schemamodulesortpackage.jsonmergefetchposebabel-coresequencecore-jsvalidmruformtoobjectInt16Arraystyled-componentsnamesharedarraybuffertoolkittyped arraycss nestingawesomesauceimmersidevariables in cssignoreglobal objectyaml_.extendoperating-systemttyRxJSsigtermconcatMaptddUnderscoreextrascheme-validationentriesArray.prototype.flattenreal-timespinnersvpcWeakMapschemeES2018popmotionjapanesemanagerArray.prototype.filterfunction.lengthincludesFloat32Arraydynamodbjsonschemaloadingemrsymlinkszeropnpm9URLSearchParamstypanionterminalECMAScript 7once0util.inspectargsiteratereactpoint-freetranspileansiesreadreact poseArrayeventsfulldeleteprivatebuffersfpsprophardlinksArray.prototype.flatMapeast-asian-widthramdaqspostcss-pluginjson-schemareadabletypeofmockvaluefastifystyleguideflattenObservablesglacierisConcatSpreadablegetopttestingbddharmonyWebSocketsxhres-shim APIespreechannelcall-bindformattingidleeslintworkspace:*packagesSetfast-deep-clonetypedarrayscheckbabelnpmio-tsutilitiesObjecttypeerrorString.prototype.trimconfigjavascriptwaitECMAScript 2021css-in-jschildpositivextermserializeserializerfsa11ylinkeverycss lessBigUint64ArrayweakmapparseobjectenvironmentshebangastagentclientformsjestargumentimmutablebannerwindowsUint8ClampedArrayArray.prototype.containscomparepolyfillchinesetrimRightlengthcallmakeUint16ArraytrimStartES7isauthbrowserlistArray.prototype.findLastIndexRegExp.prototype.flagshigher-ordermkdirpbrowserslistformatauthenticationprotobufforEachcall-boundBigInt64Arraydatenativereact-hook-formlaststoragegatewaylockfilecloudsearchdatastructurefunctionObject.valuesexecshellsethttpsoptionclassnamesmatchAllgdprtestviewStreamsgitignorelibphonenumbergetvaluespreprocessores6shammkdirreact-componentfastcommandbundlingcsspyyamlhasOwnPropertyirqimportexporttypescriptYAMLinputstructuredClonesubprocessfast-deep-copycolorses8envmomentWeakSethandlerthreeReflect.getPrototypeOfcomputed-typesArrayBuffer.prototype.sliceslicehas-owndayjsredirectpushSystem.globalhttptrimLeftinspectframersameValueZerotypesInt8ArrayjshintFunction.prototype.nameArray.prototype.flatgradients csscommandermoduleskoreanes2018asyncsiginttypefull-widthstringsuperagentgetintrinsicautoprefixerHyBicallbackreadablestreamregexpvarsregularSymbol.toStringTagtypedarrayes2016fast-copyECMAScript 6quotegroupefficientinstallerreact animationes-abstractESnextdotenviterationwindowTypeScriptroutingtypesafeshimES2017cjkworkerunicodepasswordmapfromestreeStreamperformanceairbnbtextcopyasciielectronJSONemitwritableRxbinariesassertscensorjsdomInt32ArrayparserECMAScript 5settingsdirectoryiteratorless compilerzxcloudfrontcachecoercibleconsoleCSScloudtrailsymbolsECMAScriptprunedragassertionclonestablecreatelesscssmetadataregular-expressionqueryStyleSheetclideep-clonees2015performantpicomatchprototypesloteventEmitterworkflowMapbytegroupByerrorArrayBufferbrowserES2019form-validationtransportcodesECMAScript 2020ES2020columnES3eslintpluginanimationless cssnpmignorejsdifffunctionalprocessbcryptminimalSymbolhasOwnzodurlless mixinsinsetPrototypeOfReactiveExtensionsmatchnamesUint32Arrayowndeep-copyclassnamelrumixinsserializationloggerECMAScript 2018getOwnPropertyDescriptorTypedArrayservervisualelmclass-validatoraccessibilityboundvariablesrangeerrorFloat64Arrayflagenumerableswfvalidatorproxyebsamazonjwtfixed-widthdiffi18nendercollection.es6optimizertimenegativeES2023ajaxnested csscryptowhatwguninstallecmascriptbyteLengthglobalThisdropes-shimsECMAScript 2022asteriskskeysstreamsredux-toolkitUint8ArrayhelperconstbindfastcopylintwgetsortedMicrosoftfullwidthObject.assignpinodescriptorprotocol-bufferschaisyntaxerrormake dirPromiseequalityloggingbootstrap lesssignaldeepcopytoolsECMAScript 2023inferenceCSSStyleDeclarationuser-streamslesschromesyntaxcharactercloudwatchquerystringstaterequiretoSortedglobaltypedflagsjsximportclassespropertiesString.prototype.matchAllexecutewritestarterconsumepredictablestylingwafl10nextendplugintesterdefinepipeassigncoresetImmediatevalidateyupcompile lesspackage manageridentifierscloudformationtacitcurlregexencryptionURLroutefilterwarningbootstrap cssexecfiledeepcloneObject.keyspropertysqsfnmatchdeterministicautoscalingoffsetcircularfunctionsec2Array.prototype.includesjson-schema-validationWebSocketstyleECMAScript 2019recursivearraysspawnkeyponyfillintrinsicpatchopensslexit-codeoutputexitObject.definePropertycolor-0objArray.prototype.findLaststylesheetbeanstalkwhichECMAScript 2015mockinghandlersECMAScript 3macoscontainsiamfastcloneschemaarktypetoArraydeepreusefluxfile systemartpreserve-symlinksbinelasticachecurriedmovedataViewserviceremovebundlerrandomstatelessselfdependency managerreact-testing-libraryutilitysafeacornlocationforkflatMapless.jstouchloadbalancingfront-endtseffect-tsreduxtrimprotolazyflatglobalss3optimisteslint-plugintranspilerkinesisgenericsmobiledescriptionutilelbmonorepoObject.entries.envprogressconfigurablefindtermglobsomehashstringifystylesdomES2016ES6stringifierlivebyteOffsetRegExp#flagsreplayenvironmentscolumns
2.11.69

1 year ago

2.11.68

1 year ago

2.11.67

1 year ago

2.11.66

1 year ago

2.11.65

1 year ago

2.11.64

1 year ago

2.11.63

1 year ago

2.11.62

1 year ago

2.11.61

1 year ago

2.11.60

1 year ago

2.11.59

1 year ago

2.10.59

1 year ago

2.10.58

1 year ago

2.10.57

1 year ago

2.10.56

1 year ago

2.10.55

1 year ago

2.10.54

1 year ago

2.10.53

1 year ago

2.10.52

1 year ago

2.10.51

1 year ago

2.10.50

1 year ago

2.10.49

1 year ago

2.9.49

1 year ago

2.8.49

1 year ago

2.7.49

1 year ago

2.7.48

1 year ago

2.7.47

1 year ago

2.7.46

1 year ago

2.7.45

1 year ago

2.7.44

1 year ago

2.6.44

1 year ago

2.6.43

1 year ago

2.6.42

1 year ago

2.6.41

1 year ago

2.6.40

1 year ago

2.6.39

1 year ago

2.6.38

1 year ago

2.6.37

1 year ago

2.6.36

1 year ago

2.6.35

1 year ago

2.6.34

1 year ago

2.6.33

1 year ago

2.6.32

1 year ago

2.6.31

1 year ago

1.6.31

1 year ago

1.6.30

1 year ago

1.6.29

1 year ago

1.5.29

1 year ago

1.5.28

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.24

1 year ago

1.4.23

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.21

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago