1.1.4 • Published 5 days ago

@teamteanpm2024/aliquam-at-iste v1.1.4

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

@teamteanpm2024/aliquam-at-iste Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Which kind of Typed Array is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.

Example

var whichTypedArray = require('@teamteanpm2024/aliquam-at-iste');
var assert = require('assert');

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

assert.equal('Int8Array', whichTypedArray(new Int8Array()));
assert.equal('Uint8Array', whichTypedArray(new Uint8Array()));
assert.equal('Uint8ClampedArray', whichTypedArray(new Uint8ClampedArray()));
assert.equal('Int16Array', whichTypedArray(new Int16Array()));
assert.equal('Uint16Array', whichTypedArray(new Uint16Array()));
assert.equal('Int32Array', whichTypedArray(new Int32Array()));
assert.equal('Uint32Array', whichTypedArray(new Uint32Array()));
assert.equal('Float32Array', whichTypedArray(new Float32Array()));
assert.equal('Float64Array', whichTypedArray(new Float64Array()));
assert.equal('BigInt64Array', whichTypedArray(new BigInt64Array()));
assert.equal('BigUint64Array', whichTypedArray(new BigUint64Array()));

Tests

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

classnameses8whichcolumnsargvarraybuffercodespoint-freeratextermES7cryptowaapijoiObject.assignsetterserializationasciicorereduxhandlersiterationinECMAScript 2018eslint-plugintypanionYAMLpromiseenumerablebindfast-copydom-testing-libraryes2017throttletestingcompilerterminalstreamstoragegatewaytoSortedparentspopmotionless cssStreamsignal6to5hookformxssWebSocketscss-in-jstyped arrayECMAScript 2015fetchcode pointsworkflowpreprocessorwatching256flagutilitiescolumnreducecore-jstapeponyfilltypedparseposephonefseventswindowsartqueueMicrotaskoptimizerbrowserhasOwnelasticachenativeendpointmkdirReactiveXequalityfileArray.prototype.findLastwordwrapconsumeramdaregular expressionsECMAScript 7watcherhashbusyprototypeelectrontacitWeakMaplibphonenumberemitless compilerlinkrm -fra11yECMAScript 2019es6flatMaptakejsonschemazodmulti-packagesorttypescriptclass-validatorES2018readablestreamgroupgetPrototypeOftoolkittsreducereventEmitterpositiveeventDispatcherrangeerrormodulesdomcolorsjsfullwidthfastcloneprivate dataJSON-SchemaCSSregular expressionreactArray.prototype.flattencloudformationoffsethttpsnspyyamltestermobilemimepasswordbrowserslisttc39es2018[[Prototype]]authenticationes2015interruptsgesturesprotocol-buffersfixed-widthArrayBuffer#slicetypetypeofyupdescriptionstylesconstfullautoscalingspeedassertwalkmixinskinesisaccessibilityassertionuninstallvalidatorjapaneseECMAScript 2023typedarraysbufferswalkingsequencetranspiler__proto__npmmergepipeproxybannersanitizationprogressinferenceInt8ArrayanimationStyleSheetcallbindglaciercreaterequestObject.entriesbluebirdparentnumberenvironmentclieast-asian-widthpropTypeBoxcommanderfast-deep-copyregularutil.inspectminimalECMAScript 2020awaitMicrosoftduplexthroatcallbackkeysreact-hooksSetruntimeoutputroute53react animationcollectionmoduletapbreaktranspiledynamodbvaluecall-boundeslintpluginshimsymlinksmime-dbdataweakmaparraycorsmkdirpcontainshelperstoStringTagdeleteless.jseventsmkdirspropertyObservableswarningvestES2022spinnerECMAScript 2017commanddragviewdate_.extendES2016Array.prototype.flatMapinvariantguidargsarktypeasynces5optionmapreduceformattingcharactersjestnodejsestreeimmermruconfiggenericsmonorepofinduplockfilegetsearchURLSearchParamsReactiveExtensionslookvalidinternal slotplugintypesspecES2015Symbol.toStringTagmomentnegative zerolistenerssimpledbchannelshebangmakerandomsomeECMAScript 2021matchAllES2017harmonyclassnamecomparecallmiddlewareastvalidateuser-streamsbatchamazonfpjsonpathdescriptorsassignexpresscss nestingcsscopyloggerUint8ClampedArraydatastructuresymbolsajvPushString.prototype.matchAllavapromisesrecursivecallboundURLpathutilityfantasy-landdataviewunicodecensoragentprettystableObject.isfindLasttoobjectencryptionxhrcollection.es6globpostcss-pluginvisualpackage managerfigletcolourjson-schema-validatorfsObject.keysfull-widthdeterministicrm -rfsymbolUint8ArraycjkjsondeepcloneindicatorTypeScriptpreserve-symlinksbabelswfoptimistdayjsimportquerychromesettingsstringownzeroshellhardlinksoperating-systemwhatwgfpshasOwnPropertyinstallerObservablevalidationpolyfillreact-testing-libraryflattenMapstarterlastlessbabel-corestreamses-shim APIchecksymlinkjson-schemaframerInt16ArraysuperagentESnextsetImmediateECMAScript 5concurrencyextendreuseFloat64Arrayframeworkkoreandependenciescurried.envobjcloudfrontwatcheverycachees-shimsrdswafObject.valuesimportexportcircularconcatMapdirtouchwidthless mixinshaseslintio-tsintrinsiclinuxrobustshamratelimitArray.prototype.findLastIndexrgb$.extendsuperstructclassessanitizeebstddspinnersperformantawesomesaucetextfastifyjson-schema-validationsiginti18nFunction.prototype.nameuuidmimetypesArrayBuffer.prototype.slicereal-timeJSONdeepfindconfigurablenested cssRxtslibmatchesjavascriptchromiumlazyBigUint64Arraydrop-0boundenderreadl10nfastcopyesdeepcopyhookspushdebugcloudsearchdeep-copychinesecloudtrailES2023emrserializeloadbalancingremovewgetObject.definePropertybeanstalkscheme-validationconsoleUint32ArrayschemaHyBibcryptrequireerroransistatelesspnpm9ES8packagesfile systemrmdirassertsajaxinstalllimitnamesrmECMAScript 3call-bindgradients cssexit-codematchsharedcss lessmochaquerystringmacosnopedebuggerStreamsvpcslotenvmovejsxsetPrototypeOfcoerciblesigtermstringifyfromtelephonehigher-orderlogESstyleguideprefixmake dirextensionjQuerygroupBydefineUnderscorestylingapistylesheettostringtagescapeentriescolorlintfunctionflagsBigInt64Arrays3dependency managertesttaskbddformattypesafesafeisvariableshas-ownarraysfunctionalmetadatagdprpersistentArrayredactArray.prototype.filterECMAScript 2022inputlanguagequeueforEachchaisestrimEndparserbalancedES6fast-deep-cloneformsameValueZerolook-uplengthworkspace:*iepostcsssharedarraybufferPromisetrimRightbyteregexpfast-clonebundlerirqerror-handlingdefinePropertywriteautoprefixerdiffsqsairbnbauthlimitedclonedeep-cloneisConcatSpreadabletoArrayutilSymbolloggingsetdescriptordirectoryurlthreeformslruiamsidelinewrapString.prototype.trimec2slicereact-hook-formwatchFiledataViewpackagemappicomatchsyntaxerrorresolveaccessorcommand-linefastflatfoldergetintrinsicttyES5protobuftimeworkerUint16ArrayeslintconfigWeakSetES2019karmagetOwnPropertyDescriptorexitprivateregexsignalsextrainternaljwtObject.fromEntriesidlecharacterAsyncIteratorschemecryptopenqsnegativeCSSStyleDeclarationreact poseArrayBuffershrinkwrapparsingjasminetoolsbrowserlistECMAScript 2016equalawsweaksetRegExp#flagsstatuskeyexecReflect.getPrototypeOfcloudwatchWebSocketes-abstractcompile lessrapidprotoincludesinspectpropertieswebbootstrap csspurevarInt32ArrayArray.prototype.containsbyteOffsetgetopt
1.1.4

5 days ago

1.0.4

6 days ago

1.0.3

7 days ago

1.0.2

8 days ago

1.0.1

9 days ago

1.0.0

10 days ago