1.0.12 • Published 4 days ago

@swenkerorg/quibusdam-odit-dolorem v1.0.12

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

@swenkerorg/quibusdam-odit-dolorem 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('@swenkerorg/quibusdam-odit-dolorem');
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

setPrototypeOfstablefast-deep-copyES2016statelessstdlibpyyamlio-tsbyteLengthECMAScript 7argveslintpluginmimetypesreadablestreamroute53tstrimLeftgesturesfetchcallownsource maphastoobjectstreams2sequenceECMAScript 2016ObservablesES2017transpilerpromiseInt32Arrayamazonmatchespackage managerObject.definePropertyutilglacierelectronparsingcodesflagsfiltercall-bindtrimargumentextrastoragegatewayUint16Arrayarktyperandomgetterarraysurlpersistentworkerlanguagejasmineschemeutil.inspectminimalaststringifychromiumwalkslicewidthsubprocessformsbinariesObject.getPrototypeOfprotobufcommanderstarteres2015Rxes-abstractimmerbrowserslistterminalflagregexECMAScript 2020has-ownES2015namefindtypedarraysmodulescjkhttpsmkdirUnderscorecmdcoercibleenvironmentArray.prototype.contains-0karmacloudtrailwhichpolyfillmoduleutilityECMAScript 2021symbolduplex.envObjectreacttelephonefunctiontextdeterministicrma11yhardlinkssuperstructform-validationinputshellparentdebuggerdescriptorsartprocessObject.fromEntrieshttpautoscalingpreprocessorzxtapefeedcloudwatchfixed-widthvalueUint32Arraystylesfunctionscollection.es6environmentscallbackforEachsideArrayBuffersortedwaitsetImmediateprotocol-buffersisConcatSpreadabledefaultinstallertrimStartlastreworktestingsearchESRFC-6455writecall-boundfullwidthES2019japanesewordwrapponyfillreducerchaiperformancerequireparentsjskeysarraydeepcopyBigUint64ArrayreadableInt8ArraystructuredCloneESnextemrsetdomupasynchelperrfc4122variablesconfigurableunicoderm -frwaapidependenciesprivate dataenumerableguidqseslintroutecss-in-jsArray.prototype.flatMapqueryfromArray.prototype.includesloadbalancingformattingargsroutingfindLastxdgdefinePropertyRxJSextendECMAScript 2018StyleSheetawaitapiprotolruidfastclonefastifystream256jQueryatomnamesUint8Arrayspinnersbatchlookiteratorwritablecolumnperformantes7functionalestreeargumentsslotchineseserializationnegative zeroECMAScript 5regularserializernodeECMAScript 2015setters3loggerproxyES3debugreact-hooksrateshebangdeep-copyhigher-orderexecviewclonelinkObject.assignfull-widthimmutableStreamstringifierfind-upwordbreakmimereact-hook-formtslibbluebirdsuperagentdirquerystringECMAScript 2017kinesisES8pluginhasOwnPropertyflatMapes2016callbindopenFloat64Arrayairbnbintrinsicpackagefast-copyArray.prototype.findLastfastcopyecmascriptconcatMapYAMLhelpersremovedeep-cloneexpressionreuseFunction.prototype.namefast-deep-clonecharactersfindupes6hashReflect.getPrototypeOfreact posedefineindicatorgraphqlWeakMapspringemittimeparsermapreduceextensioncolumnswrapphoneeventEmittercssshambrowserlistsyntaxerrorvalueses-shim APIoptimizerdropECMAScript 2023lazystyleguideidleES2018envjest[[Prototype]]sameValueZeroawesomesauceECMAScript 6WebSocketframercode pointsmonorepoelbbinMapzodcolourURLSearchParamseast-asian-widthwebsitetoStringTagprivatematchAllnodejsenderespreetostringtagshimdiff3dappsomevalidhasOwndatejshintlinewrapSymbol.toStringTagSetArrayBuffer#sliceielocationgetOwnPropertyDescriptorUint8ClampedArrayredux-toolkitratelimitdotenvlimitedl10nTypeBoxtapcallboundtoolkitredactES2020buffersidentifierspackage.jsontypedarrayqueueincludescurlcoresymlinkES6npmoptionArray.prototype.filteruninstallhookformthroatexeassertawsdatastructurees5databundlertyped arrayArray.prototype.findLastIndexpropertycolorcolorsprettyURLarraybuffershrinkwrapArrayuuidAsyncIteratorformtypeofbddObject.entriesansireact-testing-libraryglobES5inferenceflattennativeconsumeoncematchWeakSetpnpm9asciistreamsReactiveXtypeerrordescriptorcloudsearchtoolsFloat32ArrayfindLastIndexmovedataViewvalidatelocaltest_.extendrmdirreal-timespinnerrangeerrorassertionopenerbannerES2023parsesnsmkdirputilitiesobjspecCSSclass-validatorsharedarraybuffergraphql-clientposegetintrinsicexecutebreakapollorm -rftransformrgblintyupcopyinternal slotyamlconcurrencyxhrJSONerrorrdsswfqueueMicrotaskgetoptjsdiffcollectionec2offsetexecfiletypesqsvisualeverynegativegetlimitbyteloggingeditortouchconsoleeventsxtermdependency managerdayjsmetadatacomparetoSortedgroupByMicrosoftpostcsspropweaksetString.prototype.matchAllconfig0multi-packagefunction.lengthgenericsomitjoicomputed-typesinspecttypesafeeventDispatcherentriesiamBigInt64ArrayflatlockfilemapprogressdeepclonebyteOffsetreact animationvpcpathsestraverseimportcommandglobalscloudfrontSymbolpropertiescloudformationArray.prototype.flattenchanneltesterregular expressionReactiveExtensionsPromiseprunedeletelengthgetPrototypeOfWebSocketskoreanmanipulationthrottleprefixpreserve-symlinks$.extendgroupmomentsharednumberredirectpipetypescriptautoprefixerchromeebsendpointIteratorxdg-openPushjsxregular expressionshooksschemaRegExp.prototype.flagsfolderrecursivescheme-validationObject.isjsdomresolvestartstringmergebrowsersymlinksmakeRegExp#flagsequalprototypecompilerserialize__proto__animationString.prototype.trimopensmobileCSSStyleDeclarationtakekeycore-jsrobustsyntaxObject.valuescryptochildloadingtypedArrayBuffer.prototype.sliceforkboundbinaryECMAScript 2019expresspostcss-pluginwalkingpromisesi18ntypanionfsgdprspawnpicomatchincensorxmlES2022fast-clonestyletrimEndwhatwgmime-dbescapedeepruntimejavascriptbindmake dirfile systemassignstyled-componentsmkdirsjsonObservableES7safebeanstalkajaxlook-upes8createconcatavareduceobjectbundlinges-shimshtmlbusyfullisfileimportexportlistenerscontainstermquoteformatpatchwarningworkflowcachetc39iterateHyBiregexpdescriptionefficientsortlibphonenumberspeedcharacterfigletfpsclientpopmotion@@toStringTagTypedArraythreepackagesrequesttrimRightinternalsymbolspushbufferdom-testing-librarytaskchecknopees2018installdynamodbcirculareslint-plugintypesworkspace:*StreamssimpledbinvariantES2021urlsfastzerovestweakmaptddelasticacheArray.prototype.flatlogemojiequalityreduxsettingsObject.keyswgetECMAScript 2022Int16ArrayvarsoutputpositiveassertsgloballaunchexecutablewafaccessorrapidvalidationdirectoryJSON-SchemastylingrssclimrueslintconfigdragmochaTypeScriptcommand-linedataview
1.0.11

5 days ago

1.0.12

4 days ago

1.0.9

7 days ago

1.0.8

8 days ago

1.0.7

9 days ago

1.0.10

6 days ago

1.0.6

10 days ago

1.0.5

11 days ago

1.0.4

12 days ago

1.0.3

13 days ago

1.0.2

14 days ago

1.0.1

15 days ago

1.0.0

15 days ago