5.6.94 • Published 10 months ago

@patrtorg/saepe-alias-cupiditate v5.6.94

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

@patrtorg/saepe-alias-cupiditate 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/saepe-alias-cupiditate');
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

dynamodbbootstrap cssArray.prototype.flattenfile systemstringifyeast-asian-widthspeedutilsvestes-shim APIauthES2019rfc4122mergehandlerstypesafetacitFunction.prototype.namejsonhashdataViewopensslTypedArrayconfigsortedfiltercolordescriptorsless.jshardlinks3darrayinternal slotjapaneseassertionsharedarraybufferconcatMapuploadwgetHyBivisualspringhelperBigUint64ArrayawesomesaucewarningcircularvalidatorinvariantES8ReactiveExtensionsgradients css3optimistreact animationAsyncIteratortestencryptionpatchcompilerastiteratedayjsclassnameassertsbinaryes-abstractdependenciesrequestpackage.jsonprivateEStrimRighti18nquerystringawsECMAScript 2019forEachsymlinkstextelectronshellhooksswfes2017efficientstyleSetserializerpluginArray.prototype.flatMapviewArrayes6uuidmoveeventsInt16ArrayloadingserializationES5String.prototype.trimassertio-tshttpcheckglobparsingfetchtraverseinspectl10nomitECMAScript 2018matchkoreantoArrayprefixaccessorArrayBuffer#slicetrimEndless compilertelephoneexit-codetypeoflivereact-testing-libraryObject.assign__proto__zxreversepinoutilitiesregular-expressionyamlselfintrinsicfast-copyfileslotlastweaksetgesturessymbolsUint8ClampedArrayStreamReactiveXobjecthelpersbundlingsigintObject.definePropertyjestruntimecss variableArray.prototype.findLastIndexES2018babelargsstatelessec2findLastIndexscheme-validationcall-boundwritepropertiesairbnbfastcopystringifiersignedURLWeakMapparseridlepositivequeueelbminimalsuperagentIteratorperformanceponyfillFloat64ArrayArrayBuffer.prototype.slicepipeautoprefixereventDispatchershimArrayBufferrandomgetterArray.prototype.flatsimpledbworkspace:*trimpicomatchvarconcatstreamnegativechaisetimmutableregexptoReversedurlglobal objectramdaregular expressionjson-schema-validatorcolumnECMAScript 2020typedassigneventEmitterimportbusynodejstypanionaccessibilitygdprsqsdeepprivate dataprotosnsformattingpoint-freeYAMLoutputtypeerrormobileTypeBoxES2017getxhrrobustpersistentvalidatesyntaxmetadataArray.prototype.containserror-handlingenvironmentstylingspinnersprocessES2016faststoragegatewaycolumnspropertyextendqueueMicrotaskES2023matchAllkeyTypeScriptfigletpreprocessorajvajaxdataviewMicrosoftStreamsreal-timeUint32ArrayfunctionObjectFloat32Arrayarktypetakesequenceentriespostcss-pluginfluxhas-owndirpathtoStringTagbytebcryptieObject.getPrototypeOfcssfpscertificatesxtermdomequaltyped arraydescriptioncalljsRxStyleSheetpostcssstructuredClonestyled-componentstestingObject.keysObject.fromEntrieshookformreversedUint8ArraysetPrototypeOfoncesestestersignalshasOwnPropertyfixed-widthjsonschemasliceoptimizerRegExp.prototype.flagsreduceform-validationflatMaplanguageschemajsdomflagflattenredactflagsstatusECMAScript 2015functionalcss-in-jsmkdirhasOwnsignalsigtermmakeECMAScript 5es2015loggingfast-deep-cloneRegExp#flagssharedreduxES2022immertimeindeep-copytostringtaginputglobals@@toStringTagcoreforkglobal this valuegraphqlmacoselmcallbindownmomentgetintrinsicObject.ismatchesprogressnested cssroutingtc39iscopyerrorgroupcryptoUint16Arraypackages$.extend6to5eslint-plugin256prunees2018superstructcollection.es6colourdataECMAScript 2021internaljwtreusecommanderES2020bootstrap lessshebangasciiauthenticationendertoolsreact posevarsglobalES6posecallboundcss lessestree0emitcryptbyteLengthstreamstermbabel-coremake dircloudtrailchromiumdiffcodesapirgbgetOwnPropertyDescriptorfpbuffernamepasswordfastcloneSymbolenvjoianimationshrinkwrapBigInt64Arrayrecursiveloadbalancingbundler_.extendlogformscloudwatchnpmignorees5nopeuser-streamspreserve-symlinksgradients csselasticacheES2015asterisksdeterministicrfc9562nativecss nestingutilitymodulestoSortedreplaymonorepoeffect-tsSymbol.toStringTaginstallbannerdom-testing-librarygetPrototypeOfcall-bindemrES7fast-cloneless cssbindgitignoresetImmediatearrayscommand-lineflatjshintwindowsshampurewhichnamesframerwaapibrowserlistMapECMAScript 2016WeakSetlockfiles3tslibhttpsPushlengthclisomevalidhotECMAScript 7toobjectfnmatchESnextexecfilereact-componentJSONisConcatSpreadabletypeclassesargvclassnameses-shimsdatastructurevalidationfullwidthrouteenumerable[[Prototype]]parsedirectoryconfigurablecontainsgenericsquotehigher-ordersyntaxerrorvariables in csses2016touchtypedarraybrowserslistcloudfrontschemecore-jsmulti-packageqsjson-schema-validationfindchineseeslintpluginequalitytrimStartdotenvloggerchildreact-hooksbyteOffsetphone.envasynciam
5.6.94

10 months ago

5.6.93

10 months ago

5.6.92

10 months ago

5.6.91

10 months ago

5.6.90

10 months ago

5.6.89

10 months ago

5.6.88

10 months ago

5.6.87

10 months ago

5.6.86

10 months ago

5.6.85

10 months ago

5.6.84

10 months ago

4.6.84

10 months ago

4.6.83

10 months ago

3.6.83

10 months ago

3.6.82

10 months ago

3.6.81

10 months ago

3.6.80

10 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

11 months ago

3.6.66

11 months ago

3.6.65

11 months ago

3.6.64

11 months ago

3.6.63

11 months ago

3.6.62

11 months ago

3.6.61

11 months ago

3.6.60

11 months ago

3.6.59

11 months ago

3.5.59

11 months ago

3.5.58

11 months ago

3.5.57

11 months ago

3.5.56

11 months ago

3.5.55

11 months ago

3.5.54

11 months ago

3.5.53

11 months ago

3.5.52

11 months ago

3.5.51

11 months ago

3.5.50

12 months ago

3.5.49

12 months ago

3.5.48

12 months ago

3.5.47

12 months ago

2.5.47

12 months ago

2.5.46

12 months ago

2.5.45

12 months ago

2.5.44

12 months ago

2.5.43

12 months ago

2.5.42

12 months ago

2.4.42

12 months ago

2.4.41

12 months ago

2.4.40

12 months ago

2.4.39

12 months ago

2.4.38

12 months ago

2.4.37

12 months ago

2.4.36

12 months ago

2.4.35

12 months ago

2.4.34

12 months ago

2.4.33

12 months ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.24

1 year ago

1.4.23

1 year ago

1.4.22

1 year ago

1.4.21

1 year ago

1.4.20

1 year ago

1.4.19

1 year ago

1.4.18

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.3.16

1 year ago

1.3.15

1 year ago

1.3.14

1 year ago

1.3.13

1 year ago

1.3.12

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

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