2.1.3 • Published 5 days ago

@teamteanpm2024/quia-repellendus-quia v2.1.3

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

@teamteanpm2024/quia-repellendus-quia 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('@teamteanpm2024/quia-repellendus-quia');
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

httpspopmotiontsoffsetfast-cloneslicegroupByoptionES2015queue[[Prototype]]sequencelinuxuser-streamsgdprchromeES2021deep-clonekeyseventswindowslessdependency managerbyteLengthplugintrimStartfind-upestreereuselook-upsignalsprogressES2023expressincludesslotdatastructureArrayBuffer#slicevalidateassignregular expressioncryptpyyamldotenvauthvalidatortrimEndsafeAsyncIteratorl10nhardlinkscss-in-jstypedargparseshellBigUint64ArrayagentString.prototype.matchAllvpcownhandlersmonorepocolumntesterthrottlecssprivatechromiuma11ylinkrecursiverequirefullwidthsortedset3dcallbackenumerableparselogesString.prototype.trimhasOwntddes-shimsecmascriptlockfileduplextacitcommandECMAScript 3eslintenvironmentsimpledbreact-hook-formdescriptorspreprocessorjson-schemaassertECMAScript 7awsObject.entriestyped arrayweaksetvariables in cssbytenamesmkdirbusyeslintplugininvarianturlpropertiesjson-schema-validatorobjectdeepcopyStreamtranspilefastcloneuninstallpolyfilllengthlinewrapES7Array.prototype.flatspinnerswatchFileimmutablefolderTypedArrayES5languageposestylingObject.keyssqsdebuggergettermergepackage managerflattencommandermatchlazydataViewjsonpathamazonqschinesebluebirdnpmformspackage.jsonreal-timeURLSearchParamssuperagentendpointpipestatelessdataqueueMicrotaskmobileUint16Arraystringpnpm9deterministicjsgenericses6mimegetoptbootstrap cssMicrosoftYAMLpromises3xtermpositivetc39classnamelesscssbeanstalkstoragegatewayrmendermiddlewarecheckkarmagetOwnPropertyDescriptorstarterargsES2019hashrandomindicatorgetbabelcomparevariablesauthenticationlimitedframeworkemrwarningcomputed-typescolorsharmonypreserve-symlinkserror-handlingstructuredClonevisualArray.prototype.findLastIndextranspilersidenamespeedperformanceloggingreadtouchremoveES6zeromkdirsESnextmrurm -rfzodsortRxJScore-jsHyBiReactiveXdeep-copysetPrototypeOftostringtagequalrfc4122helperswhichpathsigintextendECMAScript 2023waitsymbolmapreducemacosentriesES2016walkObject.assigngroupclass-validatorasynctimeworkeres-abstractbyteOffsetwatchingECMAScript 2017ES8jsxObject.definePropertyfilterkinesisECMAScript 2016batchawesomesaucequeryECMAScript 2019arktypeconcurrencyECMAScript 5eventDispatcherdynamodbisECMAScript 2021parserjasmineclassesfindLastIndexECMAScript 2020ponyfill0valuequerystringaccessorrgbcodesinputintrinsicstreamstringifierbabel-coreiecss nestingdirObject.fromEntriesdragarrayprettyformattingpersistentfunctionPushfslistenerstextInt8Arrayhigher-orderObservablekeyassertioninternal$.extendtraverseless mixinsidlefast-copyregexpeventEmittersetterjsdomnested csstools6to5@@toStringTagthroatnegativeECMAScript 2022tapjavascriptflatdomframerletconcatMapprefixminimaltoArrayrdsCSSairbnbmetadataxhrES3WeakSetcloudformationjapaneserequestfantasy-land256viewresolvettyparenttapees8fetchcharacterdeepclonejQuerycompile lessisConcatSpreadableroute53dropstreamstestESrapidguiddiffsuperstructloggerassertscjkperformantregexschemefixed-widthutilpackageprototyperedactloadingfindLastcallfindupyupwatcherwafefficientswftaketypesexit-codewatchargumentFloat64ArrayArray.prototype.containsArray.prototype.findLastsesreact animationIteratorajaxsanitizationRxpromisestelephonesanitizeconsumeanimationchannelcontainscorecss variableJSONquotecirculararraysshrinkwrapunicodeflatMapenvhttpajvUint32ArrayloadbalancinghasOwnPropertyarraybuffertypesafepostcssInt16Arrayinferencetaskconstes2017mime-dbtypeinspectflagserializationfromcolourgetPrototypeOfmatchespoint-freemulti-packagevalidcloudsearchratelimitcolumnsdebugprotooptimistonceargvbuffersmoduleconcatcurriedfpsreact-hooksbundlingTypeScriptthreeECMAScript 2015sharedcode pointsSymbol.toStringTagextensionflagsES2020callboundnopeglob-0BigInt64ArrayterminalArrayBuffermakeArray.prototype.flatMapeast-asian-widthmimetypesObject.valuesconnect__proto__has-owntrimreact posedescriptionredux-toolkitbrowserbufferoptimizersyntaxruntimecommand-lineless.jsextrautil.inspecthasbundlercliArray.prototype.flattenPromisenegative zeroobjwhatwgdataviewnodejssnstoolkitgetintrinsicelasticachecreatespringES2018artcloudwatchfileshamreactiamfunctionsebsFloat32Arraybrowserslistlruvestexecreadablestreamdom-testing-libraryfpArrayBuffer.prototype.sliceMaptoSortedpushbalancedcryptoconfigurablecall-bindreduxtypescriptasciiinstallreduceavaconsoleserializeinstallerinbindreact-testing-librarywrapansiequalityJSON-SchemafigletelbObservablespackagessyntaxerrormake diruuidfast-deep-cloneerrormatchAlldatekoreanawaitless csscacheramdamoveprocesscompilerObject.getPrototypeOfpropforEachmomentcallbindcensorweakmapiteratores5emityamlsignalsettingsless compilerreducerstyled-componentsregularcloneregular expressionsbrowserlistURLcoerciblegradients css3sigtermes2018form-validationsearchES2022colorcloudfrontInt32Arrayi18nsharedarraybufferautoprefixerprunemochaautoscalingtypeofshimcss lessexpressionelectronbcryptwordbreakpostcss-pluginaccessibilityvalidationlookWebSocketcharactersasttoobjectes-shim APIspeces2016symlinkmoduleslintutilsdirectoryimmerStreamstrimLeftxssfull-widthhookformwalkingwidthworkspace:*chaitestingbanneriterationvaluesRegExp#flagsconfigio-tsgesturesiterateformatbddrateparentsUint8ClampedArraysymbolsrm -frcollectionfindboundtypeerrorclassnamesstreams2escapeprotobufArrayglacierpatchsymlinkssomeoutputdescriptorwriteRegExp.prototype.flagsvar_.extendes7dependenciesSetschemaWebSocketsECMAScript 6mapinternal slotjson-schema-validationec2corsstyleupReflect.getPrototypeOfsetImmediateUnderscorejoiWeakMapeslintconfig
2.1.2

6 days ago

2.1.3

5 days ago

2.1.1

7 days ago

2.0.1

8 days ago

2.0.0

9 days ago

1.0.0

10 days ago