1.0.4 • Published 1 year ago

@teamteanpm2024/facilis-nesciunt-fugiat v1.0.4

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

@teamteanpm2024/facilis-nesciunt-fugiat 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('@teamteanpm2024/facilis-nesciunt-fugiat');

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

loglanguagelinuxcmdspawnomitbabelutilsHyBichildstatelessshameslintmonorepocore-jscurluser-streamspackagemomentObjectString.prototype.trimsafevestchineseECMAScript 6hookformArray.prototype.flatES2016rapidxdg-opencolortypedtacitcollectionlinewrapcodesBigInt64Arrayes7wordwrapsequencetypesafebrowserslistajvreadablestreamtoolsStreams.envflattenexpressionreadeditormobileless cssartfunctionsmapstringexecjson-schema-validatorflatassignredactregularArrayBuffer.prototype.slicewatchingpatchutil.inspectconnectelectronextensionInt16ArrayclassnamesstyleguideplugintextFunction.prototype.nameio-tsmatchAllstylesheetdefineenvwaapichannelBigUint64ArrayfullwidthconcatMapprogressdefinePropertytsECMAScript 2021real-timetrimRightes8findLastcharacterscss nestingasyncES2017jsoninstallES5operating-systempoint-freenodeURLwordbreakless compilerJSONFloat64Arrayconcates2018private datadircollection.es6speedcurriedstringifyarraysharmonyMicrosoftes2015npmsearchtraverseECMAScript 3specloggingfastcopyjsxexelessoptionecmascriptfastifyvalidatorbdduuidReflect.getPrototypeOfperformancetoArrayredux-toolkitratelimitrequestpreprocessormetadatatranspilervaluejasminePromisesomefetchrmcompilernoperobustparentassertsparseres2017symlinkstypedarraygetlrues2016gesturesWeakSetequalitymkdirsES2023coerciblezeromruemojiframerstyled-componentstapbyteOffsetgenericsserializationcallpostcssthroathookstoSortedcorsbluebirdreducerextrachrometypeofdeepcloneargvgetPrototypeOfxssRxcjkbusyphonel10nbabel-coreweaksetreduxwebsitegetoptnumberjapanesedebugpackage managerwhatwges5import@@toStringTagspinnerexpressextendsyntaxerrorfolderargumentWebSocketWeakMapUint16Arraytakeievardateprotocol-buffersqsparentscallbindawesomesaucetypaniones6ArrayBufferdataViewtestirq3dloadingajaxencryptionoffsetreusequotesharedarraybufferstablelinkfpeslintconfigmixinsgroupruntimebrowserjoiformvalidationescapedeterministicnativeES8ECMAScript 2016react poselastES6descriptoreslintpluginlimitwatcherappreact-testing-librarylook-upfindup
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago