5.13.122 • Published 11 months ago

@patrtorg/architecto-rerum-eos v5.13.122

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

@patrtorg/architecto-rerum-eos 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('@patrtorg/architecto-rerum-eos');
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

@patrtorg/numquam-doloribus-sit@patrtorg/doloribus-aperiam@patrtorg/dolorum-blanditiis@patrtorg/dolorum-quisquam-molestias@patrtorg/eaque-tempore-temporibus@patrtorg/ducimus-hic@patrtorg/eaque-dolorem-iusto@patrtorg/enim-culpa@patrtorg/enim-quas@patrtorg/est-corrupti@patrtorg/error-expedita-rerum@patrtorg/esse-ut@patrtorg/esse-occaecati-quos@patrtorg/ex-iure@patrtorg/expedita-deleniti-ratione@patrtorg/expedita-eaque-at@patrtorg/fugiat-beatae-quas@patrtorg/fugiat-perspiciatis@patrtorg/fugit-cumque@patrtorg/illo-saepe@patrtorg/hic-facere-ratione@patrtorg/itaque-beatae@patrtorg/iste-sunt@patrtorg/iure-at@patrtorg/labore-nemo-impedit@patrtorg/molestiae-nulla-architecto@patrtorg/modi-aut-dolorem@patrtorg/modi-officia-iusto@patrtorg/nihil-at@patrtorg/nihil-vero-ipsa@patrtorg/pariatur-sapiente@patrtorg/quia-laborum-porro@patrtorg/qui-dolore@patrtorg/quidem-dolore@patrtorg/qui-omnis-voluptates@patrtorg/similique-nam@patrtorg/sed-laudantium-nemo@patrtorg/sapiente-sed-eius@patrtorg/sed-veritatis-placeat@patrtorg/soluta-quo@patrtorg/nisi-perferendis@patrtorg/perspiciatis-possimus@patrtorg/quo-cupiditate-sit@patrtorg/saepe-tenetur-iusto@patrtorg/repellendus-ex@patrtorg/repudiandae-dolore@patrtorg/repellat-quam@patrtorg/tempora-quas@patrtorg/tempore-cumque@patrtorg/vero-quibusdam-ipsa@patrtorg/maiores-adipisci-maxime@patrtorg/nostrum-beatae-a@patrtorg/nobis-assumenda-optio@patrtorg/nobis-nobis@patrtorg/quas-sed-id@patrtorg/reiciendis-doloribus-officia@patrtorg/soluta-numquam@patrtorg/soluta-et@patrtorg/neque-consectetur@patrtorg/neque-voluptatem@patrtorg/odit-facere@patrtorg/officiis-qui@patrtorg/odio-ratione@patrtorg/officiis-dolorum@patrtorg/quos-hic@patrtorg/similique-vero-sapiente@patrtorg/sit-ipsam-dolore@patrtorg/suscipit-sit-culpa@patrtorg/tempora-impedit-dolore@patrtorg/porro-voluptates@patrtorg/quod-asperiores@patrtorg/tenetur-aut@patrtorg/tempore-labore-mollitia@patrtorg/totam-accusamus@patrtorg/veritatis-vel-amet@patrtorg/veritatis-ad-voluptates@patrtorg/occaecati-reiciendis-reiciendis@patrtorg/pariatur-repellendus-aspernatur@patrtorg/quo-in@patrtorg/sunt-distinctio-illo@patrtorg/sunt-asperiores@patrtorg/ullam-eum@patrtorg/ullam-doloremque@patrtorg/unde-cupiditate@patrtorg/animi-laboriosam-adipisci@patrtorg/aperiam-quaerat@patrtorg/aspernatur-assumenda@patrtorg/architecto-laudantium@patrtorg/aspernatur-repellendus-assumenda@patrtorg/assumenda-officia@patrtorg/assumenda-qui@patrtorg/assumenda-ipsam@patrtorg/aspernatur-laborum@patrtorg/at-sunt-itaque@patrtorg/commodi-illo@patrtorg/beatae-quas@patrtorg/blanditiis-ea-quaerat@patrtorg/blanditiis-quibusdam-sit@patrtorg/consectetur-odio-placeat@patrtorg/consequatur-distinctio
5.13.103

12 months ago

5.13.102

12 months ago

5.13.105

12 months ago

5.13.104

12 months ago

5.13.107

12 months ago

5.13.106

12 months ago

5.13.109

12 months ago

5.13.108

12 months ago

5.13.110

12 months ago

5.13.112

12 months ago

5.13.111

12 months ago

5.13.114

12 months ago

5.13.113

12 months ago

5.13.116

12 months ago

5.13.115

12 months ago

5.13.118

12 months ago

5.13.117

12 months ago

5.13.119

12 months ago

5.13.121

11 months ago

5.13.120

12 months ago

5.13.122

11 months ago

5.13.101

12 months ago

5.13.98

1 year ago

5.13.100

1 year ago

5.13.99

1 year ago

4.13.98

1 year ago

4.13.97

1 year ago

4.13.77

1 year ago

4.13.78

1 year ago

4.13.75

1 year ago

4.13.76

1 year ago

4.11.58

1 year ago

4.11.57

1 year ago

4.13.79

1 year ago

4.11.56

1 year ago

4.13.70

1 year ago

4.13.73

1 year ago

4.13.74

1 year ago

4.13.71

1 year ago

4.13.72

1 year ago

4.13.66

1 year ago

4.13.67

1 year ago

4.13.64

1 year ago

4.13.65

1 year ago

3.7.45

1 year ago

4.13.68

1 year ago

4.13.69

1 year ago

2.6.26

1 year ago

2.6.27

1 year ago

2.6.28

1 year ago

2.6.29

1 year ago

2.6.24

1 year ago

2.6.25

1 year ago

4.13.62

1 year ago

4.13.63

1 year ago

4.13.60

1 year ago

4.13.61

1 year ago

3.6.45

1 year ago

3.6.44

1 year ago

4.9.51

1 year ago

4.9.50

1 year ago

2.6.37

1 year ago

2.4.14

1 year ago

2.6.38

1 year ago

2.6.39

1 year ago

2.4.15

1 year ago

2.6.33

1 year ago

2.6.34

1 year ago

2.6.35

1 year ago

2.6.36

1 year ago

2.6.30

1 year ago

2.6.31

1 year ago

2.6.32

1 year ago

4.10.54

1 year ago

4.10.55

1 year ago

4.10.56

1 year ago

4.10.51

1 year ago

4.10.52

1 year ago

4.10.53

1 year ago

4.9.46

1 year ago

4.9.48

1 year ago

4.9.47

1 year ago

4.9.49

1 year ago

2.6.44

1 year ago

2.6.40

1 year ago

2.6.41

1 year ago

2.6.42

1 year ago

2.6.43

1 year ago

3.8.45

1 year ago

3.8.46

1 year ago

4.12.60

1 year ago

4.12.59

1 year ago

4.12.58

1 year ago

2.5.18

1 year ago

2.5.19

1 year ago

2.5.15

1 year ago

2.5.16

1 year ago

2.5.17

1 year ago

4.8.46

1 year ago

4.13.91

1 year ago

2.5.21

1 year ago

4.13.92

1 year ago

2.5.22

1 year ago

2.5.23

1 year ago

4.13.90

1 year ago

2.5.24

1 year ago

4.13.95

1 year ago

4.13.96

1 year ago

4.13.93

1 year ago

4.13.94

1 year ago

2.5.20

1 year ago

4.13.88

1 year ago

4.13.89

1 year ago

4.13.86

1 year ago

4.13.87

1 year ago

2.3.13

1 year ago

2.3.12

1 year ago

2.3.14

1 year ago

4.13.80

1 year ago

4.13.81

1 year ago

4.13.84

1 year ago

4.13.85

1 year ago

4.13.82

1 year ago

4.13.83

1 year ago

2.2.12

1 year ago

2.1.9

1 year ago

2.2.11

1 year ago

2.1.10

1 year ago

2.1.11

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