1.0.0 • Published 11 days ago

@asdfgertyjhnpm/illum-eius-odio v1.0.0

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

@asdfgertyjhnpm/illum-eius-odio 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('@asdfgertyjhnpm/illum-eius-odio');
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

envregular expressionfindmulti-packageframerbannerbufferpromiseimmerwritablecjkcolumnRFC-6455patchlistenersstylebundlingserializationArray.prototype.flattenTypeBoxflatPromisebrowserSymbolsetstyleguidepostcssfast-deep-cloneMapglobes2016arraybufferjQuerydebugutilsless mixinsgraphqlassertioncolorsconcatMapspringthroatbluebirdkeysloggercall-binduser-streamssettingsperformancebabelsymbolscollection.es6emojiES2015ECMAScript 2021letconfigwriteObject.keysintrinsiccssvariablesjson-schemanamesdeepless.jsflattenanimationsetPrototypeOfsearchUint16Arrayrmdirsigtermfullcolormomentgetrapidstringifypropertiescall-boundtimerequireruntimedraglazyECMAScript 2017environmentclass-validatorredux-toolkitpackage.jsonasyncpicomatchhttpless csspipetoSortedsetImmediateponyfillnpmrequestecmascriptoptimistArrayconsolecontainsperformantiewatchFilestructuredCloneastmime-dbfastcopysanitizationjsonextendregular expressionsinvarianttypeerrorReactiveXreduxhasOwnUint8ArrayconsumefromserializerdataviewreduceReactiveExtensionsYAMLes2015validatepathchromiumtrimRightArray.prototype.includesidleoptimizerlibphonenumberFloat32Arrayreadirqextensionbreakbootstrap lessArray.prototype.flatMapresolveJSONestreebrowserlistslotchrometesterefficientmatchwaapi[[Prototype]]es5extrajapaneseSeteslinteventDispatcherweakmapdircore-jswordwrapprogressreact-hookses-shimsnopeloggingeventspackage managerpreserve-symlinksArray.prototype.findLastviewfoldereslint-pluginflagformmixins__proto__ratefunctionssigintObject.valuesttyAsyncIteratorclientinternalregexstreamslessgetOwnPropertyDescriptora11ydotenvObject.getPrototypeOfUnderscorexdgendercolumnstypemrukoreanObject.assignpnpm9iterationCSSReflect.getPrototypeOffunctionalqsconcatcmdvest.envECMAScript 3exitramdapolyfillfilepyyamlcreateassignbootstrap cssutil.inspectWeakMappluginstablejson-schema-validatorprocessdeepcopyguidsideTypedArraytrimLeftmobilesortedbuffersstyled-componentsinstallerharmonystylesheetwalkingtraverseawaitless compilerreducerlimitdescriptionArrayBuffer.prototype.slicejsdiffthreeeverycensortouchlookforEachECMAScript 2015trimEndES2022uuidxhrerror-handlingURLSearchParamsexeWeakSetdataViewdateclassnameslockfilerobustcoerciblesequencecheckmodulecss variablesymlinktoStringTagequalityconnectterminaloperating-systeminspectsafeObject.entriesidhelpersduplexformatspinnersString.prototype.trimHyBisyntaxerrorrandomlaunchboundcircularmkdirswebqueueauthenticationFunction.prototype.nametslibeventEmittersignalmimetypeslrueditortacittapshimemitzodoutputaccessibilityposeenumerabletestinghasjson-schema-validationlastbrowserslistfseventsECMAScript 2019jwtES2023codesasciiESnextmaplanguagedatastructurereact-testing-librarystreams2RxES6proplinuxcryptoclassesreadableECMAScript 5queueMicrotasktypedarraysfast-clonestreamdeterministicredactrm -rf_.extendajvpasswordkeyequalcurlclonejoiObservablesFloat64Arraytextvisualwatchscheme-validationparserbatchwatching
1.0.0

11 days ago