3.12.112 • Published 1 year ago

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

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

1 year ago

3.11.112

1 year ago

3.11.111

1 year ago

3.11.110

1 year ago

3.11.109

1 year ago

3.11.108

1 year ago

3.11.107

1 year ago

3.11.106

1 year ago

3.8.89

2 years ago

3.8.87

2 years ago

3.8.88

2 years ago

3.10.97

1 year ago

3.10.98

1 year ago

3.10.99

1 year ago

2.5.47

2 years ago

2.5.48

2 years ago

2.5.49

2 years ago

3.8.85

2 years ago

2.7.66

2 years ago

2.5.43

2 years ago

3.8.86

2 years ago

2.7.65

2 years ago

2.5.44

2 years ago

3.8.83

2 years ago

2.7.64

2 years ago

2.5.45

2 years ago

3.8.84

2 years ago

2.5.46

2 years ago

3.11.105

1 year ago

3.8.81

2 years ago

3.11.104

1 year ago

3.8.82

2 years ago

2.7.69

2 years ago

3.11.103

1 year ago

2.7.68

2 years ago

3.11.102

1 year ago

3.8.80

2 years ago

2.7.67

2 years ago

2.5.42

2 years ago

2.7.70

2 years ago

2.5.58

2 years ago

2.3.37

2 years ago

2.3.36

2 years ago

2.5.54

2 years ago

2.5.55

2 years ago

2.5.56

2 years ago

2.5.57

2 years ago

3.8.92

2 years ago

2.5.50

2 years ago

2.5.51

2 years ago

3.8.90

2 years ago

2.5.52

2 years ago

3.8.91

2 years ago

2.5.53

2 years ago

2.1.27

2 years ago

3.11.101

1 year ago

3.11.100

1 year ago

3.8.78

2 years ago

3.8.79

2 years ago

3.8.77

2 years ago

3.7.77

2 years ago

3.7.75

2 years ago

3.7.76

2 years ago

2.4.39

2 years ago

2.6.59

2 years ago

2.4.38

2 years ago

2.4.37

2 years ago

3.9.97

1 year ago

3.7.73

2 years ago

3.7.74

2 years ago

3.9.95

2 years ago

3.7.71

2 years ago

3.9.96

1 year ago

3.7.72

2 years ago

2.6.58

2 years ago

3.9.93

2 years ago

3.9.94

2 years ago

3.7.70

2 years ago

3.9.92

2 years ago

2.6.60

2 years ago

2.6.61

2 years ago

2.2.28

2 years ago

2.2.29

2 years ago

2.2.27

2 years ago

2.4.42

2 years ago

2.6.62

2 years ago

2.6.63

2 years ago

2.6.64

2 years ago

2.4.41

2 years ago

2.4.40

2 years ago

2.2.35

2 years ago

2.2.36

2 years ago

2.2.33

2 years ago

2.2.34

2 years ago

2.2.31

2 years ago

2.2.32

2 years ago

2.2.30

2 years ago

3.11.99

1 year ago

2.0.26

2 years ago

2.0.27

2 years ago

2.0.24

2 years ago

2.0.25

2 years ago

2.0.22

2 years ago

2.0.23

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.17

2 years ago

2.0.18

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago