7.7.113 • Published 2 years ago

@devtea2026/debitis-molestiae-distinctio-magnam v7.7.113

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@devtea2026/debitis-molestiae-distinctio-magnam 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('@devtea2026/debitis-molestiae-distinctio-magnam');
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

symlinkES5proxydescriptorStreamsenvironmentses2016ECMAScript 2016performanceECMAScript 3functionsbatchdatastructureaccessibilityreact-testing-libraryES2018jsonpathwafreact-hookslimitdynamodbclonevalidatemixinscryptobootstrap lessmapreduceglobalObject.valuestoSortedshelltakebufferbrowserdeterministicinternalWebSocketES2021awsmergefunctiondeepcopyerror-handlingrapidcore-jsjavascriptnameargparsees6lookassertsFloat64Arraynegativeincludesstringbluebirdpositiveprotocol-buffersponyfillwhatwgtslibcjkfindLastasciil10nshimarraygetintrinsicclassnamestylesObject.fromEntriesqueueMicrotaskstablebusyES8Object.keys256writevpccodes__proto__koreanwordwrapsyntaxArray.prototype.includeses-abstractuninstalldataViewenvironmentoptimizerzeromobilebannerwrapcompilersettingsAsyncIteratorhasOwnPropertyeslintpluginflatMapbcryptsetgradients cssoptimiststreamdeep-copyamazonauthquoteUint32Arraychineseliveutilcode pointsECMAScript 2020Float32Arrayless mixinsspeedlockfilemocharfc4122viewutilitiessyntaxerrorESshrinkwrapfolderswfvarsrandomtapreusetypedarrayscollectionprotobyteLengthmoduleseventshashjasminecss-in-jsInt32ArraybundlergetArrayBuffer#slicematchajvtrimLeftlibphonenumberbrowserlistpnpm9argsterminalsomeregular expressiondebugecmascripthandlersagentonceemrsigintmimetypesvariables in cssparentes2018callbounddayjsES3functionaleslintconfigjsdifffullfast-deep-copyeventDispatchervaluesopenECMAScript 2019cloudformationelectronjwtpreserve-symlinkswaitSetcall-bindgenericsjsxkeyloadbalancingtypanionreadablestreamweaksetfetchthroatsnsartYAML0callmetadataObject.isweakmapduplexrdsimportpluginES6minimalemojisqstypeofescapelengthgetOwnPropertyDescriptorfile systemelasticacheless compilerhaslazypicomatchcryptdescriptorsprotobufsymbolcommandreactTypeScriptindicatorwatchreduxdebuggerenumerablerouterdroptoolkittaskgetoptsignalchaies5ReactiveExtensionsInt8Arraya11yjsonoperating-systemxtermrm -frprunevaluettyhookstextserializermulti-packageUint16ArraymkdirpbddmonorepoRegExp.prototype.flagssuperagentcli.envdependencieshttpsremoveWeakMapBigUint64ArraycachekeysfseventsassertsortoptionspinnersArray.prototype.findLastIndexintrinsicformatspinneroffsetavapropECMAScript 2017writableprettylinewrapfluxgroupless.jskinesissequence_.extendes-shimsStyleSheetparsemkdirObject.getPrototypeOfmatchesnodemkdirsclass-validatorcolumnsfilecss variablebundlingthrottledatafsassignsesuuidpatchObject.entriesloggingdeepprocessrestfindLastIndexpredictableprefixspechasOwncharacterssidecolumnfromfast-deep-clonepostcss-pluginbreakmoveconcatsameValueZeroURLformlesscssTypedArrayqsmake dirECMAScript 2022safesortedsigtermless csshardlinksregulardeepclonefast-copyqueueWeakSetendernested cssbrowserslistapollomatchAllwatcherconnectstreamsstructuredCloneimmutablerangeerrorstyleguidegettergraphqlpackage managerserializationcss nestingloadingtestinvariantECMAScript 2015jQueryvariablesyamlnpmebsextendchromepromiseparentsrequestArray.prototype.containserrorworkspace:*tddpushArray.prototype.flatMapforEachsinatrainstallercss lesshigher-ordertoArrayreadablebeanstalkdeletexhrs3boundmru
7.7.113

2 years ago

7.7.112

2 years ago

7.7.111

2 years ago

7.7.110

2 years ago

7.7.109

2 years ago

7.7.108

2 years ago

7.7.107

2 years ago

7.7.106

2 years ago

5.6.95

2 years ago

5.6.94

2 years ago

1.1.28

2 years ago

5.6.91

2 years ago

5.6.90

2 years ago

5.6.93

2 years ago

5.6.92

2 years ago

4.3.53

2 years ago

4.3.52

2 years ago

4.3.51

2 years ago

4.3.50

2 years ago

4.3.57

2 years ago

4.3.56

2 years ago

4.3.55

2 years ago

4.3.54

2 years ago

5.4.78

2 years ago

4.3.59

2 years ago

5.4.79

2 years ago

4.3.58

2 years ago

5.4.76

2 years ago

5.4.77

2 years ago

5.4.74

2 years ago

5.4.75

2 years ago

3.2.35

2 years ago

3.2.34

2 years ago

5.6.86

2 years ago

3.2.37

2 years ago

3.2.36

2 years ago

3.2.33

2 years ago

4.3.49

2 years ago

5.6.88

2 years ago

5.6.87

2 years ago

5.6.89

2 years ago

3.1.33

2 years ago

3.1.30

2 years ago

3.1.32

2 years ago

3.1.31

2 years ago

2.1.28

2 years ago

6.6.100

2 years ago

6.6.102

2 years ago

6.6.101

2 years ago

4.3.60

2 years ago

4.3.64

2 years ago

4.3.63

2 years ago

4.3.62

2 years ago

4.3.61

2 years ago

4.3.66

2 years ago

4.3.65

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

5.5.84

2 years ago

5.5.85

2 years ago

5.5.82

2 years ago

5.5.83

2 years ago

5.5.81

2 years ago

4.2.42

2 years ago

4.2.43

2 years ago

4.2.44

2 years ago

4.2.45

2 years ago

4.4.69

2 years ago

4.4.68

2 years ago

4.4.67

2 years ago

4.2.40

2 years ago

4.4.66

2 years ago

4.2.41

2 years ago

4.2.46

2 years ago

4.2.47

2 years ago

5.5.86

2 years ago

4.2.48

2 years ago

4.2.49

2 years ago

7.7.105

2 years ago

3.1.29

2 years ago

3.1.28

2 years ago

6.6.99

2 years ago

7.7.104

2 years ago

6.6.95

2 years ago

6.6.96

2 years ago

6.6.97

2 years ago

6.6.98

2 years ago

4.2.39

2 years ago

4.2.37

2 years ago

4.2.38

2 years ago

6.7.104

2 years ago

6.7.103

2 years ago

6.7.102

2 years ago

5.4.81

2 years ago

5.4.80

2 years ago

4.4.72

2 years ago

4.4.71

2 years ago

4.4.70

2 years ago

4.4.74

2 years ago

4.4.73

2 years ago

1.1.20

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.0.6

2 years ago