1.0.3 • Published 11 days ago

@libgitname/facilis-beatae-exercitationem v1.0.3

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

@libgitname/facilis-beatae-exercitationem 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('@libgitname/facilis-beatae-exercitationem');

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

findsymlinkstapcomputed-typeslimitedpackage.jsonES5assertsbrowserplugincommanderhashworkspace:*patchECMAScript 3formatdebuggerkarmavalidES8optimistpostcss-plugingetintrinsiclimitdatewhichpostcssjsonemojigetnodeReactiveXbyteLengthphonees6form-validationrmdirscheme-validationtypescriptimmerpicomatchmatchuser-streamsuuidTypeScriptpropansijavascriptconcurrencygradients css3loadingObjecthasOwnyamlObject.valuesoperating-systemcommand-lineairbnbtelephoneES2022boundFloat64ArraysafeArrayBuffer.prototype.slicetddsetPrototypeOfES6awaitesawesomesaucebddflagreact-testing-libraryjwtsuperagentArray.prototype.findLastpropertycss lessfetchpropertiesjestpipecompilerreact posewraptoArrayJSONtouchMapdatagroupkoreanlanguagenodejstc39ES2021dom-testing-librarybabeldeletepreprocessorjsdiffextraartshimsetImmediatedescriptorsentrieswatchFilenegativeeslint-pluginmodulecharactersconcatpackage managerjoipolyfilltypeerrorconsumerm -frcolourAsyncIteratorefficientbluebirdfastcopyimmutableforEachcss variabledeepcopyhookformisConcatSpreadablepromisesMicrosoftexpressCSSoutputxhrsequencecallbindless compilerURLSearchParamsReflect.getPrototypeOfsettingseast-asian-widthsliceinstallunicodetacitlook-upguidargswalkingtypedarraysjsforms3dArray.prototype.flatcharactercheckprefixES2020exitmruinspectconsolecliflatstreamfantasy-landhandlersextendfast-deep-copyprotovalidatefunctionregexregular expressioninputharmonyspinnersoptimizeromitURLminimalautoprefixerdeep-copypoint-freeserializePromiseFunction.prototype.nameObject.definePropertyUint8Arrayworkerredactjson-schemabyteOffsetpushIteratorpersistentglobi18n6to5bootstrap csslazytranspilerrecursivenested csstypeprivategetterbundlingjQuerylistenerstimeutilfindupperformancetrimLeftbatchnpmparserdiffintrinsicjsxcss nestingRegExp.prototype.flagsECMAScript 2020getOwnPropertyDescriptormobilegdprlogSymboldomparsevestapiWebSocketpositivesymboliteratevarsymlinkArray.prototype.flattensignalststhreeframeworkstdlibequalshrinkwrap$.extendecmascriptchaichannelmakenativelinewrapsomees2018writeargumentnamesutilitiesxtermcode pointsfastifyclassesspecpopmotioncolorsrm -rffullwidthponyfillobjprocesspnpm9stableweaksetESArray.prototype.flatMapWeakMapeverylrucryptoajax
1.0.3

11 days ago

1.0.2

12 days ago

1.0.1

13 days ago

1.0.0

14 days ago