2.0.16 • Published 1 year ago

@dramaorg/aspernatur-repudiandae v2.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@dramaorg/aspernatur-repudiandae 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('@dramaorg/aspernatur-repudiandae');
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

SetSymbol.toStringTagbundlerescapesafeBigInt64ArraytraversejsonschemagdprhashfetchoptimistremovetrimLefttoolkitmkdirdeepregular-expressiontransportRegExp#flagsmergerulesquerystringeventsrequestUint8ArraysyntaxaccessorlinkSystem.globalArray.prototype.filtercloudformationartwaapisimpledbelbWeakMapexecuteregexpcolorsStyleSheetgetPrototypeOfbindECMAScript 5koreanes-shimsmatchfullwidthbabel-corespinnereast-asian-widthargspolyfillramdajasmineworkflowTypedArraystyled-componentsReflect.getPrototypeOfWebSocketsforkcloudwatchglacierwidthreact-hookssetPrototypeOfforEachObservableswindowassertsschemavarscharactersefficientyamles6regular expressionRxgroupredactidentifierscallboundbounddayjslengthES7redux-toolkitjapaneseArray.prototype.includesequalweaksetgraphqlECMAScript 2019transpilernumbercompilerdescriptorsutilitiesArray.prototype.flatMapclientvalidationcolourES3hasOwn$.extendtermglobal this valuelistenersterminalpinoproxywebxmlspawndeepcopyhassnscloudsearchcall-bindES2019createfastifyredirectstarterArrayBuffer#sliceiehookscallbindArrayeventDispatcherfromrssminimalcopyObject.fromEntriesdiffinputArrayBufferes-shim APIslotUint16Arraycomparetypedreversedropstyleguidehttps.envfastreducejson-schemaECMAScript 2021whichconsumezxString.prototype.trimweakmapnpmignoreutilityrequireiteratorupvalidateparserprocesscodesprotocol-bufferspicomatchasyncquerysidefull-widthtypeshamFloat32ArraycharactersharedarraybufferObject.isrouterECMAScriptprotobufloadinganimationunicodelocationcoverageObject.entriesbufferseffect-tsspecpureesapolloPromiseStreamsetexpressiontrimStartnameimportexportworkspace:*bundlingvalidJSONfindLastIndexbineslintInt16Arrayes2018symlinkshas-owngetstreambyteLengthECMAScript 2016ECMAScript 3instrumentationchaivarfindLastiamarraybufferrecursivejsdomtyped arrayvalueassertreact animationstringespreedependency manageres2016offsetes2015regular expressionsasciijsfunction.lengthtesterES5fixed-widthtostringtagerrorimmerMapreadablestreamairbnbincludesdebuggervestintrinsicreuseestreees-abstractdebugECMAScript 2020xtermmapreducebusyInt8ArrayObject.definePropertyrdselectronslicebinarieskarmacensorcryptosetImmediateponyfillsuperagenttextsymbolcomputed-typeshelpersexecfilereduceramazonwgetassignRxJSsymbolstypesansidragpluginObjectglobjson-schema-validatorECMAScript 2023inconcatmaketrimRightcollectionES2020assertionthreedescriptorsource mapArray.prototype.containsvalidatorshebangstoragegatewayqueueMicrotaskdataviewtddprivatesettingstypedarrayfeedrm -rfstreamsviewtouchArray.prototype.findLastIndexcore-jsRegExp.prototype.flagsloggingeveryObject.valueslocalgetterrestfulrandompreprocessorjsdiffexec-0descriptionES2022rapid@@toStringTagflatqscloudtrailjsoncssYAMLwalkreal-timeinstallglobalsfpsInt32ArrayprefixcurlSymbolharmonyfunctionsstylingperformanceisConcatSpreadableawsArray.prototype.flatnegative zeroconstjQuerycontainsparseserializerchromegesturesdefinecloudfrontbeanstalkgetOwnPropertyDescriptorseschildECMAScript 2017internal slotECMAScript 2022dynamodbmovefast-deep-cloneinferencecoerciblecollection.es6ajvFunction.prototype.nameappmomentsomegetintrinsicpackagesreactarraysec2flagsttyindicatorinvariantcallbackinternaldomdependenciesshellreversedes8flagphoneastcircularentriesclassesmruhasOwnPropertytoReversedflatMapzoddeep-copyargumentes2017keyCSSnativedeleteconfigregularpropertyinspectmanagersqsacornswfmulti-packageWeakSetgetoptparentscss-in-jstapequoteserializationatomfind-upendpointcode pointsCSSStyleDeclarationstringifierdefinePropertyECMAScript 7keysMicrosofttypedarraysformatl10ntslib3dhigher-ordertoSortedtypescriptpackagehttpsortedagentresolveecmascriptURLpropertiesrmdir0tsclassnamespnpm9RFC-6455environmentjestsharedreact posePushWebSocketes5point-freemonorepoconsoleloggerfilterresttoStringTagArrayBuffer.prototype.slicecolumngitignorepyyamlJSON-SchemamobilearktypewhatwgperformantStreamsimmutablenodenopematchesArray.prototype.findLastes7importtoolsrangeerrorvaluesdotenvfigletcloneignoreprivate datatakestringifykinesisframeworkjsxtypesafemappushBigUint64ArrayESnextidledataViewrfc4122emojigenericssubprocesslintbannerfullECMAScript 6htmlworkerfunctionalautoprefixerReactiveExtensionsES6Object.getPrototypeOfpackage managertranspilelanguagespinnersnamesfindhardlinksdeterministictypanionuuiddeep-clonestyledirframeri18nutilcallrm -frsetterpostcss-pluginES8expressprotoebstc39modulespathrgbObservableform-validationoptionelasticachefast-copyHyBiutil.inspectUint32Arraypropschemeeslintpluginjavascriptcall-boundcjkutilsonceTypeScriptruntimes3superstructspeedfastcopyiteratelockfileglobaluninstall__proto__IteratortoobjectreadenderomitawesomesauceoutputlooktypeofString.prototype.matchAllregexspringconcatMapsyntaxerrorglobal objectserializepostcssemrredux
2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago