7.7.113 • Published 1 year ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

7.7.112

1 year ago

7.7.111

1 year ago

7.7.110

1 year ago

7.7.109

1 year ago

7.7.108

1 year ago

7.7.107

1 year ago

7.7.106

1 year ago

5.6.95

1 year ago

5.6.94

1 year ago

1.1.28

1 year ago

5.6.91

1 year ago

5.6.90

1 year ago

5.6.93

1 year ago

5.6.92

1 year ago

4.3.53

1 year ago

4.3.52

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.3.57

1 year ago

4.3.56

1 year ago

4.3.55

1 year ago

4.3.54

1 year ago

5.4.78

1 year ago

4.3.59

1 year ago

5.4.79

1 year ago

4.3.58

1 year ago

5.4.76

1 year ago

5.4.77

1 year ago

5.4.74

1 year ago

5.4.75

1 year ago

3.2.35

1 year ago

3.2.34

1 year ago

5.6.86

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.2.33

1 year ago

4.3.49

1 year ago

5.6.88

1 year ago

5.6.87

1 year ago

5.6.89

1 year ago

3.1.33

1 year ago

3.1.30

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

2.1.28

1 year ago

6.6.100

1 year ago

6.6.102

1 year ago

6.6.101

1 year ago

4.3.60

1 year ago

4.3.64

1 year ago

4.3.63

1 year ago

4.3.62

1 year ago

4.3.61

1 year ago

4.3.66

1 year ago

4.3.65

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

5.5.84

1 year ago

5.5.85

1 year ago

5.5.82

1 year ago

5.5.83

1 year ago

5.5.81

1 year ago

4.2.42

1 year ago

4.2.43

1 year ago

4.2.44

1 year ago

4.2.45

1 year ago

4.4.69

1 year ago

4.4.68

1 year ago

4.4.67

1 year ago

4.2.40

1 year ago

4.4.66

1 year ago

4.2.41

1 year ago

4.2.46

1 year ago

4.2.47

1 year ago

5.5.86

1 year ago

4.2.48

1 year ago

4.2.49

1 year ago

7.7.105

1 year ago

3.1.29

1 year ago

3.1.28

1 year ago

6.6.99

1 year ago

7.7.104

1 year ago

6.6.95

1 year ago

6.6.96

1 year ago

6.6.97

1 year ago

6.6.98

1 year ago

4.2.39

1 year ago

4.2.37

1 year ago

4.2.38

1 year ago

6.7.104

1 year ago

6.7.103

1 year ago

6.7.102

1 year ago

5.4.81

1 year ago

5.4.80

1 year ago

4.4.72

1 year ago

4.4.71

1 year ago

4.4.70

1 year ago

4.4.74

1 year ago

4.4.73

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.0.6

1 year ago