3.12.112 • Published 11 months ago

@devtea2026/nisi-tempore-sed-quia v3.12.112

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

@devtea2026/nisi-tempore-sed-quia 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/nisi-tempore-sed-quia');
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

loadingvarses5l10nawsfseventsWeakMapboundmakejsonpathansitakedeep-copyfastcopyES5browserlistendpointefficientcommandwalkequalparserlogArray.prototype.findLastlinuxsequenceastwatcheast-asian-widthparentsFloat32ArraybyteLengthmovehasOwnPropertyprototypegroupByconfigebslesses6interruptsoptimizerjoiES2015charactersglobaltermreducerutilityamazonreact-hook-formYAMLcheckcss-in-jswatchFilea11yES2018collection.es6charactercloudsearchcolorkinesisUint8ClampedArraystreams2stablerm -frgradients css3reuseECMAScript 2018lockfilefetchmixinssyntaxerrorTypeBoxdatastructurepipediffiamprotobuflinkroute53operating-systemtoArrayviewfixed-widthwatchingbuffercompile lessglobalsirqfolderponyfillECMAScript 2021BigUint64Arraycall-bindconcatMapArray.prototype.flatregexpratelimiteditorworkspace:*fast-copymatchesdeeprangeerrorclass-validatorjshinttddObject.getPrototypeOfclassesdeep-cloneArrayBuffer.prototype.slicegenericsprivatecmdtraversewordbreakcloudfrontrgbargparseObject.assignhelpershttpmimemime-db_.extendelmvalidateinstallerECMAScript 3RegExp#flagsmapreducees-shim APIopenerimportexportsameValueZerosortcollectionfunctionalRegExp.prototype.flagscodesUint8Arraypnpm9globcallboundES2019idUnderscoreelasticacheregulartslibtapeinternalES2016sestoolkitWeakSetnopeiterateemojifunctionsstatelessargumentkeysnested cssargumentsnodeString.prototype.matchAllES2022apiloadbalancingcloudformationshellfunctionspeedWebSocketsjavascriptpersistenthasxhrdotenvdefaultString.prototype.trimbyteTypedArraytrimLeftmomentzeroauthenticationjwtcore-jswrappatchreadablestreamtesterautoscalinges2017sortedspecavaeventDispatcherflaglistenersInt32ArrayequalitysnsoptimistglacierthrottlejsPushopensES8Object.definePropertystategetintrinsiccss nestingi18nspinnerES7browserloggingflatMapemrwarningmobileworkerweaksetwhichupincludeshasOwnwhatwgReactiveXiteratorhigher-orderswfschemamiddlewarefsclassnameidentifierswebsitephonecoerciblepushserializerpredictableassertionreadECMAScript 2023AsyncIteratorhandlersFloat64ArraycopyvariablesinferenceObject.fromEntriesfigletreduxeverytypedarrayjsdiffprivate dataObjectStreamexitdescriptionlintECMAScript 5expressionjapanese256styled-componentsfindArrayBufferinvariantenumerablewritabletrimRight-0robustECMAScript 2020rmlastdependency managerclassnamestrimStartdeepcopyoutputstringifyreact-hooksextrareactcode pointscomputed-typesfromES2017requestwebrfc4122flagspropeslint-pluginformsgradients cssdeepclonestreamfluxsafeless.jscryptomodulesBigInt64ArrayvpcawaiturlsarraybufferfastclonetouchcolumnsfilerestfulajvsignalsstyleexecutableassertsproxypruneeslintjQueryshimECMAScript 2015typanionless mixinsES3namepackage.jsonReactiveExtensionsES2021concurrencynodejscontainsreplaychaiFunction.prototype.namegetoptrecursiveprefixcolorsfullcolumngdprform-validationsignalasciizodruntimeuuidttyenvdescriptorprocessio-tsmonorepobreakobjectmkdirstylesheetwritestringlivefull-widthasynctelephonetypedarraysspinnerscacheconnectplugindroprmdironcewalkingchannelpromiselook-upschemechinesesidelinewrappostcss-plugindirectoryreal-timeoffsettypesafeSymbol.toStringTagECMAScript 2016beanstalkindicatorwatchercallbackpropertyfast-clonebannersymlinksESes2016wget[[Prototype]]jestcircularstatusextendArray.prototype.filtersharedarraybufferspawnassertpackagefast-deep-copyObject.valuesbyteOffsetsettingsstoragegatewaydeterministicflattrimrandomSymbolartmake dirsetImmediatevisualbootstrap lessstdlibstylesdynamodbes2015Reflect.getPrototypeOfcss lesslimitestreethroatenvironmentobjtoSortedawesomesaucecall-boundtimeESnextArray.prototype.findLastIndexsymbolInt16ArrayparsegetPrototypeOfstringifiersharedformattingscheme-validationslicebindnegative zerocloudwatchjsonfilterpyyamlcommanderclicommand-linemochapackage manageragentless cssJSONserializationHyBi
3.12.112

11 months ago

3.11.112

11 months ago

3.11.111

11 months ago

3.11.110

11 months ago

3.11.109

11 months ago

3.11.108

11 months ago

3.11.107

11 months ago

3.11.106

11 months ago

3.8.89

12 months ago

3.8.87

12 months ago

3.8.88

12 months ago

3.10.97

11 months ago

3.10.98

11 months ago

3.10.99

11 months ago

2.5.47

1 year ago

2.5.48

1 year ago

2.5.49

1 year ago

3.8.85

12 months ago

2.7.66

1 year ago

2.5.43

1 year ago

3.8.86

12 months ago

2.7.65

1 year ago

2.5.44

1 year ago

3.8.83

12 months ago

2.7.64

1 year ago

2.5.45

1 year ago

3.8.84

12 months ago

2.5.46

1 year ago

3.11.105

11 months ago

3.8.81

12 months ago

3.11.104

11 months ago

3.8.82

12 months ago

2.7.69

1 year ago

3.11.103

11 months ago

2.7.68

1 year ago

3.11.102

11 months ago

3.8.80

12 months ago

2.7.67

1 year ago

2.5.42

1 year ago

2.7.70

1 year ago

2.5.58

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.5.54

1 year ago

2.5.55

1 year ago

2.5.56

1 year ago

2.5.57

1 year ago

3.8.92

12 months ago

2.5.50

1 year ago

2.5.51

1 year ago

3.8.90

12 months ago

2.5.52

1 year ago

3.8.91

12 months ago

2.5.53

1 year ago

2.1.27

1 year ago

3.11.101

11 months ago

3.11.100

11 months ago

3.8.78

12 months ago

3.8.79

12 months ago

3.8.77

12 months ago

3.7.77

12 months ago

3.7.75

12 months ago

3.7.76

12 months ago

2.4.39

1 year ago

2.6.59

1 year ago

2.4.38

1 year ago

2.4.37

1 year ago

3.9.97

11 months ago

3.7.73

1 year ago

3.7.74

12 months ago

3.9.95

11 months ago

3.7.71

1 year ago

3.9.96

11 months ago

3.7.72

1 year ago

2.6.58

1 year ago

3.9.93

11 months ago

3.9.94

11 months ago

3.7.70

1 year ago

3.9.92

11 months ago

2.6.60

1 year ago

2.6.61

1 year ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.27

1 year ago

2.4.42

1 year ago

2.6.62

1 year ago

2.6.63

1 year ago

2.6.64

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

2.2.35

1 year ago

2.2.36

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.2.30

1 year ago

3.11.99

11 months ago

2.0.26

1 year ago

2.0.27

1 year ago

2.0.24

1 year ago

2.0.25

1 year ago

2.0.22

1 year ago

2.0.23

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

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

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

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