3.7.82 • Published 11 months ago

@hishprorg/voluptas-beatae v3.7.82

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

@hishprorg/voluptas-beatae 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('@hishprorg/voluptas-beatae');
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

xmltraversevalidatesharedarraybuffercreateaccessibilitycloudtraillockfilefast-deep-clonereadablestreamiamstreampropfnmatchArray.prototype.flatMapcensorwriteArray.prototype.flattendescriptiona11yrm -frlookcore-jsregular expressionsvestsyntaxerrorMicrosofttoobjecteslintpluginkeyreduxshimnpmuuidfeedmovemake direxecfileyamlfastefficientponyfillcirculares5loggingfilter.envcommandersnsreducepackage managerasciideepgroupBytypedarrayshasOwnhas-ownterminalFunction.prototype.namecompilerrecursivetoStringTagsetkeysbrowserslistglobaltypeCSSfindfunctionlogasynclastcolourconfigurableJSON-Schemacloudsearchmapschemamodulescode pointswarningreversedprivatepackage.jsoncopyfantasy-landautoprefixerdeep-copycoerciblereact poseistanbulUint8Arrayglobal this valueflagfindupasteriskssinatradebuggerHyBiInt16ArrayObject.getPrototypeOfStyleSheetObject.fromEntriesJSONequalformattermRxreact animationnodejsformstarteres2018nativeparentnpmignoreES2020mruecmascriptstreamsES2022idl10nautoscalingparseuser-streamstoReverseddependenciesslotroutercallboundsuperagentUint16ArrayexpressshellsortedAsyncIteratorglobalThismanipulationconsumehastacitqsform-validationclassnametelephoneairbnbpipedom-testing-librarycjkregularobjectperformancePromiseregular expressionposeconcatMapgetoptwaitES2023flatMapECMAScript 2020ECMAScript 2017optionArrayBuffer.prototype.slicehashrdsspawneslintconfigshrinkwrapgetletbabel-coredateproxyimportString.prototype.trimObject.definePropertyWebSocketFloat64ArrayStreamsoptimizerES2021prototypepatchTypeBoxstableclassnamescharacterdirectoryspringeventsgroupstylingparsertimerapidsuperstructflagsguidharmonyenvironmentjesteverycolorsscheme-validationArray.prototype.findLastIndexwalkingmkdirssource mapdraglistenerssidethreemergexhrnameebstypeerrorappES5awssqsesreducerargvsafenumberreworkfastcopyfast-copyrulesqueuepnpm9assertsfastclonechromehelpersomitfpsutil.inspectcurlfunctionalzoddeterministicarktypejsonassertionimportexportES3pathsubprocesshelperinternal slotprettypromiselocationexecisConcatSpreadablewhatwgdropECMAScript 2021elasticacheObject.keysbannermonorepocallbackdataViewparentsfpnodegetOwnPropertyDescriptorArray.prototype.filtertc39find-upjoicloudfrontmakematchAllforktoSortedincludesfetchregular-expressionObject.valueskinesisstructuredClone3dglobalsboundutilsWebSocketsphonearraybufferkorean$.extendrm -rfregexutilityECMAScript 2015RxJSsetPrototypeOfObservableArraymochaRFC-6455simpledbinstallerclientBigUint64ArrayruntimetoArraymobilegitignoreES2015gettercall-bindclihookssesgloberrorcolumnimmutablepositivesharedvalidwhichstyleguidecurriedperformantInt32Arrayxtermswfi18nserializationchairangeerroransiurlviewresolveprogressdeepclonetslibpushjasmineredirects3querystringspinnercssbinhttppicomatchObservablesemojispinnersyupapijsObject.entriesgetPrototypeOffast-clonecacheemitfindLastStreamjsxclass-validatorECMAScript 2019
3.7.82

11 months ago

3.7.81

11 months ago

3.7.80

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

11 months ago

3.5.73

11 months ago

3.5.72

11 months ago

3.5.71

11 months ago

3.5.70

11 months ago

3.5.69

11 months ago

3.5.68

11 months ago

3.5.67

11 months ago

3.5.66

11 months ago

3.5.65

12 months ago

3.5.64

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

12 months ago

3.4.56

12 months ago

3.4.55

12 months ago

3.3.55

12 months ago

3.3.54

12 months ago

3.3.53

12 months ago

3.3.52

12 months ago

3.3.51

12 months ago

2.3.51

1 year ago

2.3.50

1 year ago

2.3.49

1 year ago

2.3.48

1 year ago

2.3.47

1 year ago

2.3.46

1 year ago

2.3.45

1 year ago

2.3.44

1 year ago

2.3.43

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

1 year ago

2.2.36

1 year ago

1.2.36

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

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

1 year ago

1.2.12

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

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago