1.0.0 • Published 24 days ago

@ptkhanh94npm/tempore-animi-doloribus v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
24 days ago

@ptkhanh94npm/tempore-animi-doloribus 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('@ptkhanh94npm/tempore-animi-doloribus');
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

toolsfulljson-schema-validationwrapio-tsmruECMAScript 2017transpileUint8ClampedArrayjoiquerySymbolwarningdatastructureenvgraphqlregularUint16ArraystarterpromisesmimePromiseregexpinputtypedarrayincludesspeedJSONrequirebcryptforEacharrayhelpersdragchaies-abstractES8eventEmitterECMAScript 2021cloneshellratelimittestschemerandomentriesarktypeclientcoreposeoptioncorsES2017cssinterruptsparentcall-boundRegExp#flagswalkinggetPrototypeOfES2019rm -frlimitedtesterwidthstablefolderwaapiObject.isjson-schematapes5look-upObject.valuesgetreducecommand-linereact-hooksIteratorbluebirdeast-asian-widthvestclassnameObjectRegExp.prototype.flagsJSON-Schemafast-deep-cloneindicatorconcatArray.prototype.filterconstqueueMicrotaskdeepcopytimeflatMapsetImmediatefastcloneWebSocketsfastifyStreampluginfunctionbyteLengthstylesheetstylemiddlewarechinesedatatypedajaxES7multi-packageyamlcachejapanesecryptPushsharedarraybufferES3nodereducernativedefineredactoperating-systemECMAScript 2015less cssES2015variables in cssnumbermomenttypeerrortrimLeftrmstyled-componentsmacoscss variableECMAScript 3nodejsrfc4122readablestreamutilitiesiteratorcode pointssigintrecursivegroupflagsspringkoreanequalgetterauthrgb_.extendESpreprocessorvalidategetintrinsiccjkrapidpropconcatMapStreamsmochaFloat64Arraygradients csswhatwgdiffl10nexpressionHyBibannersuperagenttouches8es7Object.entriesthreeObject.assignhttpslinewraponcecss-in-jssearchthroatECMAScript 6dataviewfilefixed-widthstructuredCloneWeakSetloggerstreams2execschemai18nes2017iteratecss lessbabeldomeveryregular expressionmkdirsletcreatejwtreadcss nestingobjECMAScript 5listenersform-validationtyped arraysymbolnpmcommandtypeofinspectenumerablesomereact poseelectroncolumnextensionreact-testing-libraryReactiveXCSSStyleDeclaration$.extendefficientString.prototype.matchAllstringtrimEndmkdirFunction.prototype.nameeslintplugintostringtagprivate dataassigndropqshookformshrinkwrapECMAScript 2019validatorpersistentuuidprogresszerostringifystylestelephoneweakmapmake dirfast-clonevalidationprotojsonschemaimmutablees2015lruObservableInt16ArrayBigInt64ArrayinstallformattingInt32Arrayastprocesskarmasymlinks-0webmoduleslanguagedescriptionexpressvariablesurldescriptorECMAScript 2016boundreact-hook-formObject.definePropertyESnextObject.getPrototypeOfECMAScript 2020classnamesArray.prototype.includesrobustpostcsstoolkitmatchjsxfromdeterministicArray.prototype.flatMapchrometc39bundlingjasminemime-dbstatelesssignalseventsmakeavalinuxflagidleYAMLbabel-core[[Prototype]]deepclonetaskclistreamsregular expressionsprefixECMAScript 7prettydatedeep-copyes2016Int8ArrayassertionES2018concurrencypackageRxsetanimationtypescripttoSortedes-shimschannelcompilerreuseless mixinscolourmimetypespyyamlbyteairbnbthrottleprototypemapcurlutil.inspectasyncquerystringAsyncIteratorkeyserrorencryptionasciichromiumsharedpackage managerhigher-orderSymbol.toStringTagformatinstallermoveconsumepushbrowserlistpopmotionargparsedayjsfindfindLastIndexsymlinkURLstylingsuperstructcommanderjsdifflockfileapiansiduplexisConcatSpreadablelessguidcolorsreal-timefast-copyfile systemArray.prototype.flattenbrowserlibphonenumberfigletunicodewordwrappositivebrowserslistdirargssyntaxerrorreactbuffers@@toStringTagtypesparserfsmixinswatches6fastcopyeventDispatchertypedarraystake
1.0.0

24 days ago