2.13.96 • Published 11 months ago

@hishprorg/quia-aspernatur-quae v2.13.96

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@hishprorg/quia-aspernatur-quae 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('@hishprorg/quia-aspernatur-quae');
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

__proto__east-asian-widthredirectxmleventEmitterroutefast-copyprototypeinternalrobustflatkeyweakmapHyBiWeakMapzoddragextendtypanionexecutableUint32Arraycommand-linesearchgetexeECMAScript 2015importexportECMAScript 6typedarraysamazonfast-clonearktypeinstallRegExp.prototype.flagsconcurrencyapollokeyshttpslooktimesyntaxpopmotionruntimeawsi18nsetES2016queryshebangfull-widthtypefixed-widthdirectorybufferespreecommandermruglacierworkspace:*getoptexpressES2015readableESbuffersgetintrinsicajvrecursivees2018hardlinksjsdomeslint-pluginfindLastfast-deep-clonefindqueueMicrotaskinputfind-upoptionfile systemES2023react-hooksArray.prototype.flattenjshintReactiveXtypedarrayglobenvObject.fromEntriesupSettypeofsuperagentmakepreprocessorchinesecharacterisConcatSpreadablegetOwnPropertyDescriptordatastructureJSONArrayBuffer#sliceObservableremovecode pointsrfc4122ECMAScript 2020reactparserdescriptionwordwrapgdprvpcmkdirpconcatlimitedguidestreedefinedom-testing-librarycomparedeepcopyWeakSetfpscreateUnderscorefoldertapSymbol.toStringTagdescriptorajaxfastifyastECMAScript 2017codesbyteLengthmobileurlargumentswhichasynctrimLeftpostcss-plugincjkeditorpackage.jsonvestperformancedependency managerdefinePropertyzxPushuuidpruneratelimitsymlinkurlsdebuggerdomECMAScript 2016spinnerdirArray.prototype.findLastIndexendpointjavascripttransformargvpropertycryptofeedstringECMAScript 2023function.lengthpreserve-symlinksvisualtoobjectownUint8ArrayefficientexpressionhelperhttpchannelhookformclientjestdropagentsettingslastextensionReflect.getPrototypeOfURLmovedateassertionpromisesboundtrimStartES2020websitermvarsbinariesprefixvalidationrm -frec2globalsharedarraybufferrequirewalkingbinaryes-abstractsetImmediatetsvalidatedeterministiclockfileutil.inspectmodulesArray.prototype.includessimpledbkarmainferencelintObject.assignobjtoolkitcloudformationnodestartObject.definePropertyfindupsuperstructIteratorArrayBufferlibphonenumberenvironmentES2018momentclass-validatorpipeqstexttoStringTagvaluextermformsflaglocationdiffhasOwnvalidcommandstoragegatewaycore-jslaunchmodulecomputed-typeses-shimsebseslintlimitpushutilityserializerES5rssparentsatomcircularcallboundStyleSheetrandomgesturesobjectfullwidthObject.keysautoprefixergenericsidleloggingconsumeObject.isformerrorartStream_.extendenvironmentstostringtagimmutableflatMapInt32Array@@toStringTagentriesiterationstylebindtypednumberfindLastIndextypesafeviewcolourindicatorrequestURLSearchParamsfigletwaapipropertiesdeepclonestyleguide-0regular expressioncallcoercibleFloat32ArrayttyTypeBoxsafesortES6browsersliststyleses-shim APIgraphql-clientsource mappluginstreams2argsmatchAllArrayBuffer.prototype.slicehooksemrreact posesyntaxerrormapgroupgetterwgetlanguagecloudfrontes2015charactersaccessorES3call-boundnameCSSStyleDeclarationtypeerrorESnextstdlibtypesdataViewfast-deep-copyworkflowObservablesutiltslibequalitydayjsminimalintrinsicunicoderegularopenerswfdeep-cloneFunction.prototype.namesetPrototypeOfbeanstalktaskECMAScript 2022everyworkerregular expressionses6apiimportexecute$.extendposepackage managerlistenersiterateECMAScript 2021ArrayCSSECMAScript 7touchredux-toolkitrm -rflook-upappaccessibilitywalkforkparsees20160execfilereact-testing-libraryObject.getPrototypeOfpersistentdataviewchromegraphqlterminalcloudwatchassertoffsetserializeframerphonebusyweaksetclonebrowsertoSortedopenwritenameswrapanimationarraysymlinksrdsroutingeventses8processspawnregexpES2021callbindpatchwordbreaktoolsPromisehaspositivequeuefunctionshashawaitrmdirprettytypescriptFloat64Arrayreducecallbackreact-hook-formbytetddsequenceES7arraysshimduplexcloudtrailstreamspolyfillcensorexecmime-dbsomefunctionArray.prototype.findLastwarningMicrosoftnegative zeronopeprotobufloglinkstringifygetPrototypeOfchaioptimizers3reduxJSON-SchemasymbolietapeoutputeslintconfigdeletexdgforEachrangeerrordescriptorseslintpluginreusekoreanstablestylingextracolornpmgroupByroute53columntelephoneinspectECMAScript 5traverseresolveescapeString.prototype.trimBigUint64ArraynativeMapjasmineflattenSymbolincludesmime256whatwgconsolefastcopyECMAScript 2019datacall-binddefaultes7formattingInt8ArrayArray.prototype.containspyyamlsharedomitchromiumsameValueZeronodejsObject.entriesprivatemimetypesassignES2019quotehigher-ordersubprocesssidecacheStreamshtmlassertsmetadataarraybufferprogressES8RxJSInt16Arraylazyidentifierssetterparsingl10npicomatchponyfillreducermanipulationmkdirbluebirdreal-timemkdirsawesomesaucetestingwritableasciiECMAScript 3fromspringcssjsdiffoptimist.envRFC-6455packagesiambyteOffsetairbnbstatelesslinewrappathbundlingtermthreematchidpackagetrimRightchildshamredactcorejsxio-tsUint8ClampedArrayutilitiescheckvaluesinternal slotfiltersqsES2022Array.prototype.filtercolorswafRxemitbreakfasttranspilerreworkbddslotbrowserlistconfigurableelasticachefullArray.prototype.flatinstallerloadingtrimEndsnskinesises2017WebSocketsortedlocalpostcssrapiddeeprgbtoArrayspeedquerystringspecmergepnpm9yamlfetchUint16Arrayslicetestbannertc39matchesES2017Objectschemadotenvjoiavacliequaldeep-copyvariablesmonorepomulti-packageeventDispatcherYAMLspinnersjsecmascriptfsnegativeperformantcmdcollectionwaitmake dir[[Prototype]]symbolsString.prototype.matchAlltyped arrayformatmapreducecss-in-jscolumnsthroatrateflags
2.13.96

11 months ago

2.13.95

11 months ago

2.13.94

11 months ago

2.13.93

11 months ago

2.13.92

11 months ago

2.13.91

11 months ago

2.13.90

11 months ago

2.5.43

1 year ago

2.5.40

1 year ago

2.5.41

1 year ago

2.5.42

1 year ago

2.13.89

11 months ago

2.13.88

11 months ago

2.13.87

11 months ago

2.13.86

11 months ago

2.3.35

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.11.66

12 months ago

2.11.67

12 months ago

2.11.68

12 months ago

2.11.69

12 months ago

2.1.22

1 year ago

2.8.59

1 year ago

2.8.60

1 year ago

2.11.70

12 months ago

2.11.71

12 months ago

2.11.72

12 months ago

2.11.73

12 months ago

2.11.74

12 months ago

2.11.75

12 months ago

2.6.48

1 year ago

2.6.49

1 year ago

2.6.44

1 year ago

2.6.45

1 year ago

2.6.46

1 year ago

2.6.47

1 year ago

2.6.43

1 year ago

2.6.50

1 year ago

2.12.86

11 months ago

2.12.85

11 months ago

2.4.39

1 year ago

2.12.84

11 months ago

2.12.83

11 months ago

2.12.82

11 months ago

2.12.81

11 months ago

2.12.80

11 months ago

2.4.38

1 year ago

2.4.37

1 year ago

2.6.55

1 year ago

2.6.56

1 year ago

2.6.57

1 year ago

2.6.58

1 year ago

2.6.51

1 year ago

2.6.52

1 year ago

2.6.53

1 year ago

2.6.54

1 year ago

2.12.79

11 months ago

2.12.78

11 months ago

2.12.77

11 months ago

2.12.76

12 months ago

2.12.75

12 months ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.22

1 year ago

2.2.23

1 year ago

2.4.40

1 year ago

2.9.60

12 months ago

2.9.63

12 months ago

2.9.64

12 months ago

2.9.61

12 months ago

2.9.62

12 months ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.13

1 year ago

2.0.14

1 year ago

2.2.35

1 year ago

2.0.11

1 year ago

2.0.12

1 year ago

2.2.33

1 year ago

2.2.34

1 year ago

2.2.31

1 year ago

2.2.32

1 year ago

2.9.65

12 months ago

2.2.30

1 year ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

2.10.65

12 months ago

2.10.66

12 months ago

2.0.22

1 year ago

2.0.20

1 year ago

2.0.21

1 year ago

2.7.59

1 year ago

2.7.58

1 year ago

2.0.10

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.9

1 year ago

2.0.8

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