4.2.74 • Published 11 months ago

@hishprorg/labore-quis-asperiores v4.2.74

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

@hishprorg/labore-quis-asperiores 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/labore-quis-asperiores');
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

characterECMAScriptgroupcoredirectorychannelairbnbcomputed-typesESnexttacitlocalajvdependency managercryptextenddeterministicsymlinksmkdirsReactiveExtensionspasswordECMAScript 5callfnmatchgetPrototypeOfharmonyletschemeObject.entriesstablekeysroutingspeedzodasynccryptoserialization__proto__symbol.envnodeAsyncIteratores-shim APIinstall[[Prototype]]jQueryshellirqvpchookformmergeArrayBuffer#slicereverseapifile systemwafuploadsettertestwaitArrayBuffer.prototype.sliceselfasterisksrangeerrorSymbol.toStringTagtc39setremovedescriptortoReversedpruneRFC-6455ECMAScript 7transpilershebangcore-jsloadbalancingchinesediffseses8command-linerdstostringtagUint8ClampedArraytoStringTagmatchAllInt8ArrayfastcloneforEachsymlinkfantasy-landapollo-0processstateES2022classesloggingextrainputtransportArray.prototype.filterbcryptebsSetdeepclone3dreal-timecolorshimbinariesidletypanioniteratorparsertoobjectworkerObject.isclientcodesbyteOffsetchaistylesheeteventEmitterstructuredCloneregular-expressionfunctionalhooksString.prototype.matchAllinternal slot0arraysonceSystem.globalcheckbootstrap lessgetOwnPropertyDescriptorhaspropbrowserargsmulti-packageECMAScript 6Float64ArraymatchquerystringES2021typesdayjsreactinvariantflagsregularawsviewreduxInt32Arrayvalidationquoteelasticacheweakmappersistent$.extendhasOwnPropertyECMAScript 2017consolemodulesreadablecloudwatches-abstractelbObject.fromEntriesECMAScript 2019listenersnegative zerotoolsfindLastecmascriptlogloadingperformantprototypefpenumerablecircularpreserve-symlinksclipostcsstestingrequestelmfast-deep-copyes2017nativedompipesharedequalityrfc4122reduceauthenticationmoduledeep-clonestylewriteTypedArrayeverydataprototrimEndequalprefixfixed-width256utilscss variablewalkzxECMAScript 2021cloudsearchbundlingArray.prototype.findLastjsonschemastyleguidedropreact-hook-formcopyignorechildescapetelephonestyled-componentsopensslWeakSetArray.prototype.includesmatchesworkspace:*bytecloudfrontcss lessclassnameshelpercolumnmacostoArraytoolkitstatusobjectboundinastexecuteexit-codeES3acornbuffersstringifypositivemovecallbindcompile lessconsumeaccessibilityfastES6sigintamazonJSON-Schemautil.inspectawesomesaucenopelintrapiddirbindUint8Arraypnpm9ansinumberargvjshintanimationjsdiffes2018signalslastYAMLcollectionvarsafeglobalidentifiersio-tsa11ywhatwgArrayvariables in csspatchtakecss nestingtyped arraysyntaxhottypescriptObject.keysstreames5streamsresolvereact-componentquerynpmignorespinnerstylingartreversedprotocol-buffersmkdirprotobuffast-clonetypedemrexecfilecall-bindcallbackcloneform-validationESsqsPushglacierES2019configArray.prototype.flattendeepcopyproperties
4.2.74

11 months ago

4.2.73

11 months ago

4.2.72

11 months ago

4.2.71

11 months ago

4.2.70

11 months ago

4.2.69

11 months ago

4.2.68

11 months ago

3.2.68

11 months ago

3.2.67

11 months ago

3.2.66

11 months ago

3.2.65

11 months ago

3.2.64

11 months ago

3.2.63

11 months ago

3.2.62

11 months ago

3.2.61

11 months ago

3.2.60

11 months ago

3.2.59

11 months ago

3.2.58

12 months ago

3.2.57

12 months ago

3.2.56

12 months ago

2.2.56

12 months ago

2.2.55

12 months ago

2.2.54

12 months ago

2.2.53

12 months ago

2.2.52

12 months ago

2.2.51

12 months ago

2.2.50

12 months ago

2.2.49

12 months ago

2.2.48

12 months ago

2.2.47

12 months ago

2.2.46

12 months ago

2.2.45

12 months ago

2.2.44

12 months ago

2.2.43

12 months ago

2.2.42

12 months ago

2.2.41

12 months ago

2.1.41

12 months ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.0.36

1 year ago

2.0.35

1 year ago

2.0.34

1 year ago

2.0.33

1 year ago

2.0.32

1 year ago

2.0.31

1 year ago

2.0.30

1 year ago

2.0.29

1 year ago

2.0.28

1 year ago

2.0.27

1 year ago

2.0.26

1 year ago

2.0.25

1 year ago

2.0.24

1 year ago

2.0.23

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

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