1.0.0 • Published 1 year ago

@crabas0npm2/corrupti-consequuntur-totam v1.0.0

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

@crabas0npm2/corrupti-consequuntur-totam Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS DataView? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var isDataView = require('@crabas0npm2/corrupti-consequuntur-totam');
var assert = require('assert');

assert.equal(false, isDataView(undefined));
assert.equal(false, isDataView(null));
assert.equal(false, isDataView(false));
assert.equal(false, isDataView(true));
assert.equal(false, isDataView([]));
assert.equal(false, isDataView({}));
assert.equal(false, isDataView(/a/g));
assert.equal(false, isDataView(new RegExp('a', 'g')));
assert.equal(false, isDataView(new Date()));
assert.equal(false, isDataView(42));
assert.equal(false, isDataView(NaN));
assert.equal(false, isDataView(Infinity));
assert.equal(false, isDataView(new Number(42)));
assert.equal(false, isDataView('foo'));
assert.equal(false, isDataView(Object('foo')));
assert.equal(false, isDataView(function () {}));
assert.equal(false, isDataView(function* () {}));
assert.equal(false, isDataView(x => x * x));
assert.equal(false, isDataView([]));
assert.equal(false, isDataView(new Int8Array()));
assert.equal(false, isDataView(new Uint8Array()));
assert.equal(false, isDataView(new Uint8ClampedArray()));
assert.equal(false, isDataView(new Int16Array()));
assert.equal(false, isDataView(new Uint16Array()));
assert.equal(false, isDataView(new Int32Array()));
assert.equal(false, isDataView(new Uint32Array()));
assert.equal(false, isDataView(new Float32Array()));
assert.equal(false, isDataView(new Float64Array()));
assert.equal(false, isDataView(new BigInt64Array()));
assert.equal(false, isDataView(new BigUint64Array()));

assert.ok(isDataView(new DataView(new ArrayBuffer(0))));

Tests

Simply clone the repo, npm install, and run npm test

typedbyteLengthES3pushrgbexecString.prototype.trimbrowserlistjsonpathWeakMapmimetypesPushenvironmentflagformattingreact-testing-librarycryptofseventsawslookcoerciblematchesresolvestringhttptypeerroridleenumerablelasttapelbES2020rangeerror[[Prototype]]eslintpluginreplaytypanionjestdefinePropertytypeofmapreducenamerequirepackagesstartereventEmitterrequestwrapmruwordwrapelectronintrinsicratecompile lesskeyssetarrayboundgetOwnPropertyDescriptoremitponyfillCSSsinatrawaitRxshrinkwrapgroupperformancesyntaxerrores2015es-shim APIwhichterminaldescriptioniteratorutilitylimitedflattenlanguagedomtesterprocessinferencestreamcore-jscss nestingtostringtagmodulesgetterwalksaferegularrfc4122schemeless csscommand-linejsxlintelmjwtsigtermECMAScript 6sortnopepromisebatchnegativereduxsignalautoscalingtakeassertrestfulobjectdeepstdlibmovecensortraverseiamroute53duplexroutingsharedarraybufferhigher-orderstatelesslistenerssortedinternal slottapejsoncloneirqFloat64ArrayfullwidthamazonObject.entriestestgroupByimmerfpsairbnbwatchingoptimistsuperagenttrimEnds3deepcopytaskfast-copybannerpackageendpointArray.prototype.filter_.extendless.jscliprettyavaimportexporti18nutil.inspectrouterconsumeregexredux-toolkitUnderscoregetintrinsicbundlercall-bindweakmaplinewrapRegExp#flagscolorsECMAScript 2016iterationgradients csswgetformsttyiterateCSSStyleDeclarationserializerescapefsES2019assertsregular expressionspreserve-symlinkstoSortedwidthfolderHyBicss variableaccessibilityoncevpccallboundReactiveExtensionsprotocol-buffersmatchbddfindLastIndexhotargvdeepcloneless compilerFunction.prototype.nameajaxpluginArraydiffECMAScript 2023react-hook-formMapReflect.getPrototypeOfdroplazyastpyyamlsimpledbreducePromiseasciidependency managerRegExp.prototype.flagscloudwatchbufferoptionisConcatSpreadableoffsetschemazeroObject.definePropertydefinecallbackfind-uppackage.jsongradients css3nodejsindicatorflatMapmetadatasignalsjasminetypedarraysemrES7corssnsstoragegatewayxtermbcryptinvariantexpressconcurrency__proto__dirpathfast-deep-clonestylesheetformatimmutablequerystringECMAScript 2018ajvcharacterpicomatchchannelArray.prototype.flatcryptformemojifunctionalprivateinspectmacossetImmediateReactiveXgetPrototypeOfqueryhandlerscolordebuggerserializationUint8Arrayfull-widthbeanstalkpreprocessorenderinstallargparsecircularincludeslessRxJSdeep-clonemimebufferstrimLeftvaluestypescriptsyntaxspinnerstringifierclassesinfindpatchprivate dataslicebyteOffsetUint8ClampedArraydeterministicfulldatanegative zeroWeakSetbrowserslistdotenvmkdirpArrayBuffersetPrototypeOfchromiumStreamhasharktypeESnextweaksetstructuredCloneawaitArray.prototype.flattenlimitfasttoolspersistentSettyped arrayredacthasOwnloggingtoobjectguidcomparewatchFileparsingstringifyequalityxhrsymbolES2022loadingstylingcolumnswarningtrimmergepositivees6consoleconnectgdprprototypechineseBigInt64ArrayArray.prototype.findLastIndexcontainslrusetterreadablestreameveryprotobufcollectioncss-in-jsvalidworkercloudformationartlivekoreanECMAScript 7internaldirectorytypedarrayyupbluebirdagenthooksmochaObject.keyspropslotframeworkiefromdescriptorsvalidatecharactersURLes7runtimecolumnfindupBigUint64ArrayJSON-SchemamodulecommanderObject.assignoperating-systemfileencryptionwatchdatees2018installerstyleparserES2018linuxargsfilterArray.prototype.includesmatchAllrmdirESglacierpasswordlinkinterruptsstreamsflagsjavascriptvariablesasynccommandglobES2017bindremoveaccessorextendwatcherwhatwgfastcopy-0StreamsprotoRFC-6455real-timejoihas-ownObject.iscomputed-typescode pointsminimalvariables in cssMicrosoftdebugObject.valuesratelimitreact-hooksSymbol.toStringTagopenrm -frcloudtrailassertionString.prototype.matchAlldeletemime-dbES5walkingbundling256sharednested csswebsymbolsECMAScript 2019toolkitkinesisTypeBoxeventDispatcherES2021textpipeec2urlupObservableyamlsidekarmajsansilook-upmulti-packagetouchflux
1.0.0

1 year ago