1.0.0 • Published 21 days ago

@devtea2025/architecto-perferendis-possimus-voluptas v1.0.0

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

@devtea2025/architecto-perferendis-possimus-voluptas Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var isTypedArray = require('@devtea2025/architecto-perferendis-possimus-voluptas');
var assert = require('assert');

assert.equal(false, isTypedArray(undefined));
assert.equal(false, isTypedArray(null));
assert.equal(false, isTypedArray(false));
assert.equal(false, isTypedArray(true));
assert.equal(false, isTypedArray([]));
assert.equal(false, isTypedArray({}));
assert.equal(false, isTypedArray(/a/g));
assert.equal(false, isTypedArray(new RegExp('a', 'g')));
assert.equal(false, isTypedArray(new Date()));
assert.equal(false, isTypedArray(42));
assert.equal(false, isTypedArray(NaN));
assert.equal(false, isTypedArray(Infinity));
assert.equal(false, isTypedArray(new Number(42)));
assert.equal(false, isTypedArray('foo'));
assert.equal(false, isTypedArray(Object('foo')));
assert.equal(false, isTypedArray(function () {}));
assert.equal(false, isTypedArray(function* () {}));
assert.equal(false, isTypedArray(x => x * x));
assert.equal(false, isTypedArray([]));

assert.ok(isTypedArray(new Int8Array()));
assert.ok(isTypedArray(new Uint8Array()));
assert.ok(isTypedArray(new Uint8ClampedArray()));
assert.ok(isTypedArray(new Int16Array()));
assert.ok(isTypedArray(new Uint16Array()));
assert.ok(isTypedArray(new Int32Array()));
assert.ok(isTypedArray(new Uint32Array()));
assert.ok(isTypedArray(new Float32Array()));
assert.ok(isTypedArray(new Float64Array()));
assert.ok(isTypedArray(new BigInt64Array()));
assert.ok(isTypedArray(new BigUint64Array()));

Tests

Simply clone the repo, npm install, and run npm test

dotenvstylesheetIteratorstableargsshebangbundlercore-jswaitless.jsmulti-packagewatcherkeyserializeObject.fromEntriesinbrowserslisttypeerroravatesterbluebirdcollectionloadingcommandefficientsymbolsprocessminimalArrayBufferfastinputextensioncss-in-jsArrayspeedtapwordbreakisConcatSpreadableeverypredictabletoSortedcompile lesstypedfastcopybcryptcode pointsesmkdirptasktrimEnddomwritableBigInt64ArrayopenES8japaneseeslintconfigrm -rf__proto__oncesymlinkshashmapreduceUint8ClampedArrayFloat32ArrayautoscalingSymbol.toStringTages5typed arrayvaluepackage.jsones8typescriptscheme-validationbyteLengthmkdirstypewalkparserpromiseslrutestdataViewreact-hook-formproxycharacteroptimizerquerystringdefineenvs3ECMAScript 2016route53commandertoStringTagemrmimeintrinsicregular expressionsschemeexpressionreuseparentsassign$.extendes-abstractansizoda11yfindLastdatefunctionalcss lesscircularTypeScriptregular expressiongetintrinsicdatastructuretypedarraysbatches2015reduceArray.prototype.includesCSSArrayBuffer.prototype.slicenamesmochareadworkerhigher-orderjwtstringifiergradients csstc39sortedtslibswfescapesuperstructoffsetutilityprefixcreatearraybufferimmertypeofairbnbdom-testing-librarynegativeslotrequestawesomesaucereal-timeformswalkingYAMLtypanionES2018cachefastifytoobjectqueueArray.prototype.findLastIndexcallboundRegExp#flagsisinspectfluxclonereduxtrimStartcompilerbddiechannelRFC-6455callbind256accessorcorsmatchesmoduleskarmamomentpreprocessorruntimereactttydeterministicwebwindowspositivesigintnativebusyRxJSjspipekinesises7elasticachejestUint16ArrayhookspersistentidECMAScript 6form-validationconsumehttpscallbackpropertieshttpcharactersindicatorwidthinternal slotless mixinscryptorestvaluesES2022sinatraES2016regexeventssuperagentvisualReflect.getPrototypeOfchinesefile systemlinewrapgradients css3irqjoimodulestreamcryptmakewordwrapsyntaxerrorInt16Arrayredux-toolkitchaiECMAScript 2019sortglobalsfast-deep-copyauthspinnersunicodeartiteratereact-testing-libraryappassertionbyteOffsetInt32ArraynameJSON-SchemadropwhatwglastjQueryjasminesettingsbannerES2017fastclonefind-upES2023signalpackagesameValueZeroJSONES3pushsetImmediateclassnameES2020negative zerodescriptionrateshimECMAScript 5linuxcensorstatusbundlingObject.assigncolorPushmiddlewarecloudwatchdeepcopyextraqueryelberrorObject.entriesworkflowESnextsignalsconsolefolderBigUint64ArraysafeURLSearchParamsargparsetrimRightnopereplayFloat64ArraycallbindbrowserlistWeakMapArray.prototype.findLastflattentestingdataviewinstallerthrottleES2019cjkinvariantECMAScript 7variablesasciifsUint8Arrayobjectes2018sharedarraybufferconcatMapdescriptorssimpledbfilterimportInt8ArrayratelimitweakmapArray.prototype.flatfast-copyless cssECMAScript 2015autoprefixerObservabletypeseslint-pluginexeces-shimscliidlestructuredClone[[Prototype]]Array.prototype.flattentermchromeconcatsequenceresolvecoerciblecomputed-typeshardlinksbootstrap cssregularnested cssObjectloggermergezeroECMAScript 2017ECMAScript 2022util.inspectcss nestingStyleSheetes2016pluginincludesObject.keyserror-handlingsigtermArray.prototype.flatMapreadableestreedeep-copyajvtapeenvironmentslimitiam@@toStringTagstartergraphqlstyled-componentsglobalclassnamesfullwidthsqsflagtoolkitinstallmime-dbString.prototype.trimelmurlUnderscoreECMAScript 2018vpcdescriptorexit-codebuffersvestfseventsreadablestreamworkspace:*ES7assertidentifiersdirectorywafschemahasOwnPropertyreducerenderrangeerrorextendes2017jsdiffinferenceObject.valuesfullshellStreamshasMicrosoftagentiterationdirjsxRegExp.prototype.flagspreserve-symlinksweaksetbufferpackage managerprettygdprvalidatebootstrap lesskoreanfast-clonetimeomitapolloArray.prototype.filterSetrecursivepyyamlstyleprivatei18nremoveelectronrandomstyleguideES5emittostringtagslicelinkcloudtrailclassesstoragegatewaywhichserializerTypedArrayprotocol-bufferspnpm9columnfunctionsamazonl10ngetPrototypeOfflagsfast-deep-clonecommand-linepostcss-plugincorehas-owndayjsebsutilarraysUint32ArraylivenodejsES2021configurabletoolschecksnseslintpluginrfc4122viewReactiveExtensionstsURLmacoshotowntelephonermdirvalidationdynamodbrapidsyntaxfull-widthfpsterminalthroattextenumerableencryptionArray.prototype.containsdeletetypesafesearchshamnodetddstatespinnercloudfrontstringifyfilecolorsmetadatalessprototypeentriesparentgetio-tsrgbboundcurlStreamwrapdeepdeep-cloneflatMapfunctionAsyncIteratorobjMapjsonTypeBoxstreams-0east-asian-widthdependency managerlogginghandlersmobilepostcssapireact-hooksoptimistarktypeassertscall-boundhookformtouchinternalcopyglobasyncsomeenvironmentstylinghelpersparsingmonorepoemojilazystyleskeysprivate datalibphonenumberupxtermless compilerFunction.prototype.namelistenersgroupjsonpathregexptypedarraypathecmascriptformattingawswarningcss variablejavascriptRxfigletfixed-widthjsdomrestfulqueueMicrotaskpackageslengthoptionwgetdefinePropertyObservablesdeepcloneequaleventEmittercloudformationlintauthenticationformatReactiveXECMAScript 2021progressguidbytepicomatchformvalidPromiseendpointtakequoterouterdatavariables in cssESxhrimportexportexpressECMAScript 2023passwordECMAScript 2020Object.getPrototypeOfpolyfillwriteequalitycodesimmutablelockfileES2015dependenciessetPrototypeOfponyfillcall-bindsymbolargvcontainsperformanceloadbalancingArrayBuffer#slicesidemapnpmSymbollanguagepropcssuninstallString.prototype.matchAllHyBiglacierlook-upgroupByES6concurrencyqsflatexitprotobufpatchObject.isredactgetoptcomparewatchstatelessWebSocketrobust0mkdirlimited.envduplexuuidrmpropertyObject.definePropertyshrinkwrapstreams2watchingcloudsearchtoArraytrimcollection.es6operating-systemsetstringgetterstdlibfindLastIndexastec2jshintclass-validatornumbersymlinkrequirephonerm -frawaitfromserializationbrowserwatchFilesettermatchtrimLeftchromiumECMAScript 3clientdebugmake dirbeanstalklesscssperformantaccessibilitybreak
1.0.0

21 days ago