3.8.113 • Published 10 months ago

@diotoborg/consectetur-assumenda v3.8.113

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

3.8.111

10 months ago

3.8.112

10 months ago

3.8.110

10 months ago

3.8.109

10 months ago

3.8.108

10 months ago

3.8.107

10 months ago

3.8.106

10 months ago

3.8.105

10 months ago

3.8.104

10 months ago

3.8.103

10 months ago

3.8.102

10 months ago

3.8.101

10 months ago

3.8.100

10 months ago

3.8.99

10 months ago

3.8.98

10 months ago

3.8.97

10 months ago

3.8.96

10 months ago

3.7.96

11 months ago

3.7.95

11 months ago

3.7.94

11 months ago

3.7.93

11 months ago

3.7.92

11 months ago

3.7.91

11 months ago

3.7.90

11 months ago

3.7.89

11 months ago

3.7.88

11 months ago

3.7.87

11 months ago

3.7.86

11 months ago

3.7.85

11 months ago

3.7.84

11 months ago

3.7.83

11 months ago

3.7.82

11 months ago

3.6.82

11 months ago

3.6.81

11 months ago

3.6.80

11 months ago

3.6.79

11 months ago

3.6.78

11 months ago

3.6.77

11 months ago

3.6.76

11 months ago

3.6.75

11 months ago

3.6.74

11 months ago

3.6.73

11 months ago

3.6.72

11 months ago

3.6.71

11 months ago

3.6.70

11 months ago

3.6.69

11 months ago

3.6.68

11 months ago

3.6.67

12 months ago

3.6.66

12 months ago

3.6.65

12 months ago

3.6.64

12 months ago

3.6.63

12 months ago

3.5.63

12 months ago

3.5.62

12 months ago

3.5.61

12 months ago

3.5.60

12 months ago

3.5.59

12 months ago

3.5.58

12 months ago

3.5.57

12 months ago

3.5.56

12 months ago

3.5.55

12 months ago

3.5.54

12 months ago

3.5.53

12 months ago

3.5.52

12 months ago

3.5.51

12 months ago

3.5.50

12 months ago

3.5.49

12 months 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