1.0.0 • Published 15 days ago

@rabiepenpm/vel-corporis-earum v1.0.0

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

@rabiepenpm/vel-corporis-earum 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('@rabiepenpm/vel-corporis-earum');

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

ECMAScript 2023somefileRxJSstablenegative zeroi18nlesstraverseartFloat64Arraytyped arrayless.jsstringpicomatchbundlingstatusdeepcopysharedassertmatchAllspeedpruneECMAScript 5tddqueuePromiseauthform-validationreduxcss-in-jsSetprivateendertty3dinterruptsdataviewES2022optimizerupvalidationreuseemojinamesargparsepreprocessoropenerjson-schema-validationfilternativekoreanbddformformszeroECMAScript 2020chromiumbundlerperformancemacospathsortedcss variablesignalspropspinnersjavascriptpipeinspectprefixio-tsfpeventsiteratorassertsECMAScript 2018styleflagrfc4122uninstalldomspinnerterminalInt16ArrayweaksetECMAScript 3characterajaxsigtermsetstreams-0intrinsicFunction.prototype.namedateconstsetPrototypeOfiterationasciibcryptpropertymonorepofastcopysortdirectorybrowserslistrateserializationforEachcolumnswatcherqueryReactiveExtensionsstreamString.prototype.trimflattenquerystringloggerMapgetOwnPropertyDescriptorcall-boundmimecontains$.extendlinewrapECMAScript 6cssxhrreact-hook-formdom-testing-libraryWebSocketslint.envdefinePropertyreal-timeredactObject.keysoptimistairbnbgetPrototypeOfgesturesfastifyargvlazyimmutablelesscss6to5watchFilejestCSShashhttpsviewbindoncecorscollectionrmdirregular expressionsUint32Arraypatchexpressionreact-testing-libraryHyBihasrequestdeepnegativeflagsspecawaittrimLefttapeES3breakpluginexecutableefficientfindupopentypedcompilersearcheslintBigUint64ArrayjapanesejoichaisigintES2015typedarrayspasswordargumentsvaluesstylesheetArrayBuffer#slicebootstrap lesswebsitecliopenscjkformattingnpmframeworkArray.prototype.findLastIndexlrueslintplugines6stylespositivegraphqloutputclassnamestranspilerbluebirdcss lessnameincludesdeletefastbufferdatastructureparsepersistentenvcss nestingwritablees-shimsregexbatchArray.prototype.containsfindLastIndexrobusteventDispatcherRFC-6455ArrayBufferboundlastentriesrm -frpurereact animationeslintconfigindicatorpreserve-symlinksvaluearraybufferPushconcurrencyprototypeArray.prototype.flatworkerdebuginstallregular expressionshrinkwrapsliceencryptionpnpm9readablefigletcoercibleelectronerrorgetterfantasy-landestreeexit-codegetoptAsyncIteratorECMAScript 2019JSON-SchemaStreaminvariantclientfindLastconfigcommanderdataViewvalidaterm -rfhandlersfast-cloneprogressbabel-corebyteLengthES2016moduleoperating-systemcoloures-shim APImkdirpprocessObservablees2015classeslogjsonxtermconsumemomentspringless cssclonepropertiesUint8ClampedArraywgetpyyaml@@toStringTagstyled-componentsjson-schemautilcallbinddiffhardlinkstelephonedescriptorlimitedmimetypeslibphonenumberreact-hooksdroptypesafeflatMaphasOwnwalkinferenceTypeBoxsetterstylingURLshamECMAScript 2015find-upcacheextensiontestingtypeofcodestouchpoint-freesymbolscryptosyntaxerrorfast-copymochaa11yspawntrimEndbabel__proto__statelessansicorerequiregdprbuffersbrowserlistdebuggerwritevariableses-abstractsymbolpolyfillbytelanguageESjstypedarrayirqsettingsuser-streamsistostringtagreactexittslibcomparedeterministicArray.prototype.findLastES7gradients css3symlinkswaites7jwtTypeScriptframerArray.prototype.flatMapdires2017String.prototype.matchAllquoteobjectreact poselistenersxdg-opencurriedmrudefaultcharactersthrottlemulti-packagerecursiveruntimemobilebootstrap csshttpES2018structuredClonewebwordbreakprotocol-buffersreadablestreamshebangsequenceArray.prototype.includesArray.prototype.filtervalidArrayBuffer.prototype.slicetoArraydotenvconcatMapInt32ArrayexeES2023minimalcompile lesslinuxmoveisConcatSpreadabletermvalidatorjsxMicrosoftlogginguuidsyntaxmkdirschildapibrowserhelpersajvcolumnless compilermetadatabyteOffsetlaunchutilitiesvestapollocensorfixed-widthbannerfseventsmixinsjQuerymake dirmapfunctionsutil.inspecttc39wrapdatarandomtranspiledeep-cloneratelimitcore-jsescapeObject.definePropertyjsdompostcss-pluginwaapisafetrimStartanimationarrayscurlECMAScript 2017fsweakmapcallboundextendtypescommandworkspace:*environmentgetintrinsicxdgYAMLunicodethreecallbackstringifiermergeaccessibilitysanitizationtspromiseURLSearchParamschromeArray.prototype.flattenfunctioncommand-linefullwidthcode pointstypanionRxredux-toolkitrangeerrorIteratores8mime-dbECMAScript 2016Object.assignnopeletgetl10ntaskcollection.es6argumentfulltakeless mixinsshelldayjsyupsignalurllookRegExp.prototype.flagsObject.entriesvisualtoolsstyleguidees5toStringTagcolorES2021schemacomputed-typesavautilityReactiveXchannelsameValueZeropackagesramdatypecircularwhatwgwarninginputflatclassnameserializereadBigInt64ArraycolorsstartgroupByasttrimwindowsObject.valuesdescriptiontestshimsetImmediatecryptkarmaarrayoptionecmascripteast-asian-widthdefineautoprefixermodulesdependenciessidefast-deep-copySymbol.toStringTagiteratewidthemitnested cssES6idleinternal slotes2018watchingeventEmittereditorparentsuperstructinternaltimeES2020numberregexpasyncglobWeakSetequalesslotArrayWeakMapdependency managerlockfilermconnectponyfillauthenticationmakezodomitES2019RegExp#flags
1.0.0

15 days ago