3.8.113 • Published 12 months ago

@diotoborg/consectetur-assumenda v3.8.113

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@diotoborg/consectetur-assumenda 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('@diotoborg/consectetur-assumenda');
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

react animation6to5uuidlookiterateserializegraphqlspecpropertiesESbuffersRxresolveutilmake dirrssdragbyteES2023HyBiagentcloudfrontURLmkdirplastnodejsvariablesflattenflatMapTypedArrayBigUint64Arrayrm -rfisConcatSpreadableimmutablees2015Array.prototype.findLastprefixshrinkwrapdescriptorsreact-hook-formbundlerESnextpostcss-pluginsafeglobistanbulbeanstalkdayjsoffsetassignFloat64ArraydotenvtypesafetraverseassertionfpsdebuggerhasOwnuppackagescollection.es6prototypefindLastIndexES6objectarktypeconfigurablegroupObservablesvpcexecsqsbundlingislocationamazonuser-streamsfullregular.gitignoredataViewprivate datafast-cloneintrinsicfile systemremovereact-hookspruneloadingbabelsesformsxtermprettyshamvalidateArray.prototype.containsframerArray.prototype.flathooksassertscheme-validationes-shimsTypeScriptform-validationECMAScript 7arrayObservablejsdomcommandvisualmruwindowvalidatormapautoscalingjs@@toStringTagio-tscolourtoolsnegativeidlenamesprotocol-buffersbinariesemrcheckposepopmotion[[Prototype]]superstructjsdifftesterstartercolorsexpresstypeerrorObjectredirectsource maprgbpackage.jsonstringifierdiffcloudsearch.envtypesnodecurljavascriptcall-bindtoSortedfantasy-landcloudtraildeepcopytrimLefthardlinksfast-deep-clonezodtypedes6telephoneforEachiteratormakeutilitiesjson-schemaresttypeoftrimEndgroupByes5clonetslibnopesideperformantoptimizeraccessibilitydatekoreanflagchinesedom-testing-librarytestspeedArrayBufferECMAScript 2023setworkercensorfnmatchECMAScript 2016Object.definePropertyprocesspathweaksetSystem.globalfastifycorefolderzeroquoteroute53regexpqueueconsumecontainsInt16ArrayUint8ClampedArraycommanderenvironmentstyleguidegetPrototypeOfgloballoggingvaluesString.prototype.trimclienttoobjectprogressendpointlrues8deletebyteOffsetacornignoregetoptcoverageawsfilterstringstylefindupStreamssyntaxerrorclivaliddependency managersubprocesscall-boundargvcomputed-typesqueryreduxjapaneseUint32Arraycore-jszxhttpsjsxWeakSettc39ECMAScript 3toolkitsymlinkspushprotobufcssjasminedependenciesglobal this valuefromfslanguagefiglettrimStartrobustownRegExp#flagspreprocessorvalidationmodulesweakmapcallbindgetterObject.getPrototypeOflocalcircularxmlenvironmentshttp$.extendtranspilercompareproxysetImmediatesortedrapidfast-deep-copyhtmlJSON-SchemasetPrototypeOfpipebddruntimejshintWeakMapglobalThisnamejestsameValueZeroECMAScript 2015emojiSymbol.toStringTagreuseinstrumentationdescriptorextrafetchES2020codesrm -frfastcopySymboloutputjQueryerrorhas-ownslotmetadatapoint-freechrome_.extenddefinesomeserializerECMAScript 2022higher-orderfunctionasteriskschaicryptoautoprefixerpluginequalwhatwgmoduletriminspectwalkespreeECMAScript 5packagepromisekeysefficientlinkpatchminimaltapecharactersettingsMicrosoftes2016globalsregexstoragegatewaylogparentsReactiveExtensionsharmonybindES8omitecmascriptBigInt64ArrayschemeutilsqueueMicrotaskes2018karmareactbabel-corermdirelectronroutingdropjoiES2018asyncconstcode pointsFunction.prototype.nametrimRightartfindinstallWebSocketfast-copyYAMLfunctionalmulti-packageIteratorsymbolObject.valueseslintanimationtacitguidframeworkappextendcallboundkeyES7CSSworkflowwarningStreamfixed-widthchannelindicatorspinnershimcloudwatchhasjsonconfiges7stablesinatramatchesassertschildatomesstreamsswfInt8ArrayES2021executejsonschemakinesisimmerspringcreateECMAScript 2021yamlwaitmanipulationsyntaxsimpledbTypeBoxs3eslintpluginroutermkdires-shim APIspawnawesomesauceqs3dECMAScriptrestfulentriesreducerpureECMAScript 2019workspace:*ES2016i18neffect-tsArrayBuffer.prototype.sliceshellieimportexportescapefastreadableMapJSONarraysrecursiveobjtoReverseddynamodbutil.inspectrequestavaimportregular-expressionconcattddproppositiveStyleSheetfptypescriptajvreact posees2017requireconcatMapbrowserlisttranspilewalkingramdauninstallarraybufferObject.ispolyfillxhrSetcommand-lineRFC-6455functionssearchgetOwnPropertyDescriptorString.prototype.matchAllfindLastgitignorelockfileECMAScript 2018airbnbsuperagentWebSocketstransformpicomatchArray.prototype.flattendomserializationloggertakeReactiveXoncedeterministicArrayBuffer#slicesortstylesECMAScript 2017function.lengthsymbolsunicodepinocoercibleequalitylet
3.8.113

12 months ago

3.8.111

12 months ago

3.8.112

12 months ago

3.8.110

1 year ago

3.8.109

1 year ago

3.8.108

1 year ago

3.8.107

1 year ago

3.8.106

1 year ago

3.8.105

1 year ago

3.8.104

1 year ago

3.8.103

1 year ago

3.8.102

1 year ago

3.8.101

1 year ago

3.8.100

1 year ago

3.8.99

1 year ago

3.8.98

1 year ago

3.8.97

1 year ago

3.8.96

1 year ago

3.7.96

1 year ago

3.7.95

1 year ago

3.7.94

1 year ago

3.7.93

1 year ago

3.7.92

1 year ago

3.7.91

1 year ago

3.7.90

1 year ago

3.7.89

1 year ago

3.7.88

1 year ago

3.7.87

1 year ago

3.7.86

1 year ago

3.7.85

1 year ago

3.7.84

1 year ago

3.7.83

1 year ago

3.7.82

1 year ago

3.6.82

1 year ago

3.6.81

1 year ago

3.6.80

1 year ago

3.6.79

1 year ago

3.6.78

1 year ago

3.6.77

1 year ago

3.6.76

1 year ago

3.6.75

1 year ago

3.6.74

1 year ago

3.6.73

1 year ago

3.6.72

1 year ago

3.6.71

1 year ago

3.6.70

1 year ago

3.6.69

1 year ago

3.6.68

1 year ago

3.6.67

1 year ago

3.6.66

1 year ago

3.6.65

1 year ago

3.6.64

1 year ago

3.6.63

1 year ago

3.5.63

1 year ago

3.5.62

1 year ago

3.5.61

1 year ago

3.5.60

1 year ago

3.5.59

1 year ago

3.5.58

1 year ago

3.5.57

1 year ago

3.5.56

1 year ago

3.5.55

1 year ago

3.5.54

1 year ago

3.5.53

1 year ago

3.5.52

1 year ago

3.5.51

1 year ago

3.5.50

1 year ago

3.5.49

1 year ago

3.5.48

1 year ago

3.5.47

1 year ago

3.4.47

1 year ago

3.4.46

1 year ago

3.4.45

1 year ago

3.3.45

1 year ago

3.3.44

1 year ago

3.3.43

1 year ago

3.3.42

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.3.40

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.3.35

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.2.26

1 year ago

1.2.25

1 year ago

1.2.24

1 year ago

1.2.23

1 year ago

1.2.22

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.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

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