4.2.74 • Published 2 years ago

@hishprorg/labore-quis-asperiores v4.2.74

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

2 years ago

4.2.73

2 years ago

4.2.72

2 years ago

4.2.71

2 years ago

4.2.70

2 years ago

4.2.69

2 years ago

4.2.68

2 years ago

3.2.68

2 years ago

3.2.67

2 years ago

3.2.66

2 years ago

3.2.65

2 years ago

3.2.64

2 years ago

3.2.63

2 years ago

3.2.62

2 years ago

3.2.61

2 years ago

3.2.60

2 years ago

3.2.59

2 years ago

3.2.58

2 years ago

3.2.57

2 years ago

3.2.56

2 years ago

2.2.56

2 years ago

2.2.55

2 years ago

2.2.54

2 years ago

2.2.53

2 years ago

2.2.52

2 years ago

2.2.51

2 years ago

2.2.50

2 years ago

2.2.49

2 years ago

2.2.48

2 years ago

2.2.47

2 years ago

2.2.46

2 years ago

2.2.45

2 years ago

2.2.44

2 years ago

2.2.43

2 years ago

2.2.42

2 years ago

2.2.41

2 years ago

2.1.41

2 years ago

2.1.40

2 years ago

2.1.39

2 years ago

2.1.38

2 years ago

2.1.37

2 years ago

2.1.36

2 years ago

2.0.36

2 years ago

2.0.35

2 years ago

2.0.34

2 years ago

2.0.33

2 years ago

2.0.32

2 years ago

2.0.31

2 years ago

2.0.30

2 years ago

2.0.29

2 years ago

2.0.28

2 years ago

2.0.27

2 years ago

2.0.26

2 years ago

2.0.25

2 years ago

2.0.24

2 years ago

2.0.23

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago