1.0.0 • Published 19 days ago

@ptkhanh94npm/doloremque-mollitia-harum v1.0.0

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

@ptkhanh94npm/doloremque-mollitia-harum 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/doloremque-mollitia-harum');
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

includespicomatchsetArray.prototype.flatimmermodulesforEachinternal slotargparselistenersnopestdlibprotocol-bufferses6URLflagsharedtermstylesheetdebugkeyESastfigletvisualUnderscorespinnerpnpm9windowsserializeres2018fixed-widthnegativecode pointsshampackage.jsonenumerablenativedotenvquoteObject.definePropertyoperating-systempyyamlairbnbES2016metadatakoreandayjscallcallbackbrowsersliststylinghasOwndependencieswebwrapES3mimeTypeScriptcodespreserve-symlinkstoolsjoiconcurrencytapduplexStreamsefficientES2015httpsworkspace:*matchsyntaxerrorshrinkwrapdescriptorsWebSocketl10n__proto__buffersArrayBuffer.prototype.sliceexecObservablesrequestReflect.getPrototypeOfbannercopyES5formattinginstallmkdirpfolderECMAScript 2016trimRightfsES2020hardlinksassertemites-shimsawesomesaucestatusnamesguidgetPrototypeOfredactsymlinkscorestarterObject.getPrototypeOfcensorcommanderexpresscompilerRxes-abstractinterruptsmkdirscjkregexpruneoptimizerautoprefixerfile systemless.jstsprivateSetstringObject.is6to5fileStyleSheetInt8Arrayhttptakeloggerdependency managerreact-hooksjsonschemaAsyncIteratorassignHyBiES2018streams2taskttytouchzerodom-testing-librarypopmotionglobkeyshookscharactersonceform-validationextrafromfastcurlauthenticationjestcharacterbootstrap cssposefastclonei18nbcryptArray.prototype.flatMappolyfillcollection.es6east-asian-widthcss-in-jssearchUint16Arrayiteratorlibphonenumberless compiler_.extendreact posephonees-shim APIfast-deep-clonetslibstablewritableTypeBoxsetterhandlersframeworkES8Object.fromEntriesreal-timereadxtermprocesstextrm -frexit-codeuuiddefinePropertytyped arrayvarformdiffsideperformantlesscssESnextimportdeletees2015flatMapfindupcallboundimmutableiereact-hook-formregularhookformstyleguidebyteLengththreegradients csswarningdeep-clonesequenceES2019testingpreprocessorprogressformatreducerschemenamelook-upequalityprotoes7escapelinuxstringifyperformancewatchereventshashobjectparentsArray.prototype.flattencolourArray.prototype.containsvalidationiterationnested css$.extendmovespecletanimationreducecall-bindreact animationesObject.entriesclienttypeerrorresolvevalidatortelephonefast-cloneRxJSfunctionmacosgetintrinsicdeterministicprototypeArrayBufferBigInt64ArraychannelcryptoclassnamerequireES7package managerdomutilitiesCSSStyleDeclarationartstylesentriespropertiesoptionfindsomevaluesmonorepormdirdeep-copyscheme-validationsignalsharedarraybufferlinteslintconfiglanguagejsonstyled-componentsprotobuftdddataViewbyterateECMAScript 2022equal.envpostcss-pluginassertsthrottlecacheconnecttranspilereveryJSON-SchemaisConcatSpreadablecommandworkerjsonpathnodeTypedArraycomputed-typespostcssgettercssindicatoreslint-pluginapibuffersuperstructWeakMapaccessor@@toStringTagvestclassesflattenuplogjapanesesetImmediatemodulenodejsrangeerrorjson-schema-validationes8ECMAScript 7signalsconcatMaptrimEndcore-jsmobilermweaksetInt32Arrayrfc4122groupspringtoSortedReactiveXArrayYAMLPushsigintECMAScript 2018transpileconsumeloggingslicetostringtagmatchAllWeakSettyped0accessibilitycall-boundtapeless mixinsponyfillbusyReactiveExtensionscryptlessUint8ArraytoStringTagObject.keyswalkingiterate-0RFC-6455xhrjsdiffArray.prototype.filterclonelimitedInt16Arraychromiumdebuggermakeboundcolorsutillinewrapawaitnegative zeronpma11yoptimisttypelimitbabelinstallerassertionqsnumbermatchesconstmiddlewarefunctionalMicrosoftsyntaxfastifytypeofbatchgroupBydatastructurewaitdir[[Prototype]]wordwrappackagebreaksymlinkremovepassword3dcss nestingoutputmimetypesformssetPrototypeOfminimaltrimgetoptcomparewordbreakconfigurablerm -rffullwidthvaliddropeventEmitteres5settingsconsolecreatewatchmkdircontainseslintdatalengthshellextensiontypedarraysgradients css3ObjectSymbol.toStringTagtraversemruecmascriptpersistentUint8ClampedArrayhelpersvariablesIteratorhasrandomparsegenericsfetchelectronutil.inspectinspectmochaES6karmawhichavawgetcommand-lineurltimesymbolsvalidateomitCSSES2023make dirpipeconcatbootstrap lessECMAScript 2020estreeuninstallvalueFloat64ArrayObject.assigndragtypeszodbluebirdclipackagesmime-dberror-handlingserializeasciiajaxqueryemojiquerystringfind-upclassnamesqueueMicrotaskjwtMapjsdominferencesameValueZeroclass-validatorgetdatepushharmonybddrapidJSONfastcopyArray.prototype.includesargsredux-toolkitsymbollookopenECMAScript 2017fullreduxdataviewBigUint64ArraycoercibleeslintpluginconfigarktypeECMAScript 6Array.prototype.findLastIndexdeepstructuredClonecompile lessArray.prototype.findLastsuperagentextendcolumndefinecolumnsWebSocketsbrowserlistrgblazytypedarrayES2021colorsortedpatchlrutoobjectenvlockfilespinnersreusedirectoryshebangsigtermString.prototype.matchAllstatelesseventDispatcherratelimitsafeECMAScript 2021stringifierintrinsicgdprexitArrayBuffer#slicebundlingerrorjson-schema-validatordeepclonefast-deep-copygetOwnPropertyDescriptorauthruntimeunicodegraphqlparserpositivewatchFilecss variableinputexpressionregexpflatpathargvirqfilteruser-streamstoArrayschemainternaljQuerycheckthroatbrowserwriteweakmapfunctionsmap
1.0.0

19 days ago