4.10.96 • Published 10 months ago

@taktikorg/quidem-dolore v4.10.96

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

@taktikorg/quidem-dolore 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('@taktikorg/quidem-dolore');
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

negative zerolistenersrfc41223dconstclassesesl10na11ysharedconcatinvariantintrinsicapollovalidatorperformancecss-in-jses-shimsArray.prototype.filteristanbulpushsameValueZeroarraybuffertc39timesetImmediateglobES7descriptionstyletestArray.prototype.flatMaputilitiesspeedReactiveExtensionspropertyRFC-6455arraysmanipulationacorncompilerchildprefixArray.prototype.includesvpcschemagetOwnPropertyDescriptoruninstallpyyamldotenvtacites8mkdirpenvironmentfull-widthenumerableObjectselfspawnObject.isObject.getPrototypeOfreduxdom-testing-libraryfastclonematchAll[[Prototype]]termminimalpostcssUint8ClampedArrayeveryArray.prototype.findLastECMAScript 2022bundlinglintformsgraphqlgenericsqueryUnderscoreconsumeECMAScript 2021waitslotTypeBoxcircularsorthasOwnPropertyquoteES2017jsonschemaObservableWeakMapfastifyfindupsimpledbhelpersnpmignoreframeworkhtmlstoragegatewaycensoroutputdiffsnstestingglobalparentchineseswfamazonenviteratedirlinkObject.definePropertymonorepopathglacierfpnumberbyteLengthnoderulesvalidutilenvironmentsthreebyteOffsethookformasterisksconfigroutermoveglobalThisstringmochavaluesfindLastIndexbinariesObject.values@@toStringTagAsyncIteratorbeanstalktranspileagentsharedarraybufferrm -fryamlelbxtermidle.envfast-clonedependencieslook-upFloat32Arraydeepclonepackage.jsontapebusytostringtagIteratorforkflatMapmodulebrowsereffect-tsaccessorsesSetinstallerreworktraversetrimEndfindimmergitignorereuseec2Int32ArrayfullwidthruntimehardlinksramdajshintObservablesInt8ArrayArray.prototype.flatignoreArrayBuffer#slicefromweakmapArrayclonehelperfast-deep-copytelephonerequireeventDispatchernegativeschemeES2016dataViewrmArray.prototype.containsMaptransformchromearraysuperstructtoobjectjQuerypropRegExp#flagstoSortedtransportECMAScript 2019reversedendpointpreprocessorboundelectronnativepatchBigInt64ArrayFloat64ArraysortedbrowserslistArrayBufferYAMLonceJSONcoverageflagwebpoint-freeasyncregexppinocheckpromisewafeslintconfigcolumnsbddapi_.extendgetPrototypeOfexecfiletsECMAScript 7callboundwalkwritewalkingparsewindowrapidphonematchwarningJSON-Schema$.extendtypessinatraloggingstringifiertrimStartletinspectsymbolscolorMicrosoftlocalshambinaryformattingajvmulti-packagecloudsearchES5lastdefinePropertyroutingwaapisqsECMAScript 2015pnpm9charactersECMAScript 2023stringifyReflect.getPrototypeOfoptionjson-schemareact-testing-librarytyped arrayhasOwnestreecallbacksearchglobalsjsxrmdirserializedeterministictypedarrayspackage managerinstrumentationbundlersafefeedmkdirsclientgdprspinnersuperagentbytepolyfillreadableargumentsyntaxerrorcall-boundformdeepcopyrandomcollection.es6es5visualwidthinternal slotstarterinferenceutilsprettyharmonyflattenenderoffsetimportexportgroupByjasmineoptimizerhas-ownecmascriptes2018noperemoveredactsymlinksttycloudfrontmergeebsvestfetchsomeresolvearktypereadablestreamutilityasteast-asian-widthassertsStyleSheetposeinfilecachestyled-componentskoreanlengthdeep-copytoolsset
4.10.96

10 months ago

4.10.95

10 months ago

4.10.94

10 months ago

4.10.93

10 months ago

4.10.92

10 months ago

4.9.92

10 months ago

4.9.91

10 months ago

4.9.90

11 months ago

4.9.89

11 months ago

4.9.88

11 months ago

4.9.87

11 months ago

4.9.86

11 months ago

4.9.85

11 months ago

4.9.84

11 months ago

4.9.83

11 months ago

4.9.82

11 months ago

4.9.81

11 months ago

4.9.80

11 months ago

4.8.80

11 months ago

4.8.79

11 months ago

4.8.78

11 months ago

4.8.77

11 months ago

4.8.76

11 months ago

4.8.75

11 months ago

4.8.74

11 months ago

4.8.73

11 months ago

4.8.72

11 months ago

4.8.71

11 months ago

4.8.70

11 months ago

4.8.69

11 months ago

4.8.68

11 months ago

4.8.67

11 months ago

4.7.67

11 months ago

4.7.66

11 months ago

4.7.65

11 months ago

4.7.64

11 months ago

4.7.63

11 months ago

4.7.62

12 months ago

3.7.62

12 months ago

3.6.62

12 months ago

3.6.61

12 months ago

3.6.60

12 months ago

3.6.59

12 months ago

3.6.58

12 months ago

3.6.57

12 months ago

3.6.56

12 months ago

3.6.55

12 months ago

3.6.54

12 months ago

3.6.53

12 months ago

3.6.52

12 months ago

3.6.51

12 months ago

3.5.51

12 months ago

3.5.50

12 months ago

3.5.49

12 months ago

3.4.49

12 months ago

3.4.48

12 months ago

3.4.47

12 months ago

3.4.46

1 year ago

3.4.45

1 year ago

3.4.44

1 year ago

3.4.43

1 year ago

3.4.42

1 year ago

3.4.41

1 year ago

3.4.40

1 year ago

3.4.39

1 year ago

3.4.38

1 year ago

3.4.37

1 year ago

3.4.36

1 year ago

3.4.35

1 year ago

3.4.34

1 year ago

3.4.33

1 year ago

3.4.32

1 year ago

3.4.31

1 year ago

3.4.30

1 year ago

3.4.29

1 year ago

3.4.28

1 year ago

3.4.27

1 year ago

3.4.26

1 year ago

3.4.25

1 year ago

3.4.24

1 year ago

3.4.23

1 year ago

3.4.22

1 year ago

3.4.21

1 year ago

3.4.20

1 year ago

3.4.19

1 year ago

3.4.18

1 year ago

3.4.17

1 year ago

3.4.16

1 year ago

3.4.15

1 year ago

3.4.14

1 year ago

3.4.13

1 year ago

3.4.12

1 year ago

3.3.12

1 year ago

2.3.12

1 year ago

2.3.11

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

1.1.4

1 year ago

1.1.3

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