5.9.96 • Published 4 months ago

@diotoborg/doloremque-tempore-harum v5.9.96

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

@diotoborg/doloremque-tempore-harum Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var isTypedArray = require('@diotoborg/doloremque-tempore-harum');
var assert = require('assert');

assert.equal(false, isTypedArray(undefined));
assert.equal(false, isTypedArray(null));
assert.equal(false, isTypedArray(false));
assert.equal(false, isTypedArray(true));
assert.equal(false, isTypedArray([]));
assert.equal(false, isTypedArray({}));
assert.equal(false, isTypedArray(/a/g));
assert.equal(false, isTypedArray(new RegExp('a', 'g')));
assert.equal(false, isTypedArray(new Date()));
assert.equal(false, isTypedArray(42));
assert.equal(false, isTypedArray(NaN));
assert.equal(false, isTypedArray(Infinity));
assert.equal(false, isTypedArray(new Number(42)));
assert.equal(false, isTypedArray('foo'));
assert.equal(false, isTypedArray(Object('foo')));
assert.equal(false, isTypedArray(function () {}));
assert.equal(false, isTypedArray(function* () {}));
assert.equal(false, isTypedArray(x => x * x));
assert.equal(false, isTypedArray([]));

assert.ok(isTypedArray(new Int8Array()));
assert.ok(isTypedArray(new Uint8Array()));
assert.ok(isTypedArray(new Uint8ClampedArray()));
assert.ok(isTypedArray(new Int16Array()));
assert.ok(isTypedArray(new Uint16Array()));
assert.ok(isTypedArray(new Int32Array()));
assert.ok(isTypedArray(new Uint32Array()));
assert.ok(isTypedArray(new Float32Array()));
assert.ok(isTypedArray(new Float64Array()));
assert.ok(isTypedArray(new BigInt64Array()));
assert.ok(isTypedArray(new BigUint64Array()));

Tests

Simply clone the repo, npm install, and run npm test

handlerssnssymbolsbrowserfindLastsortedconsumeformsfunctionalfluxcloudsearchplugines2015findSymbolMicrosoftECMAScript 2015minimaljestdirectoryreact-testing-librarypasswordmatchAlli18nastopenssles2016animation0asyncmapspeedreduceArrayBuffer#sliceloggerhookformUint32ArrayReflect.getPrototypeOfincludesregular expressionescapesetImmediatesymlinkECMAScript 2020movegetshebangchannelES2022tslibstyled-componentsfrommake direslint6to5sigintinstallaccessibilityaccessorwindowsStyleSheetuploaddiffcommandflatMappureencryptioncall-bindinferencesyntaxtoSortedentriesunicodereact-componenterrores-shim APIcore-jswhichweaksetconfigequalparserreusefunctionstypeerrormergetesterhttpsacorntrimEndelmfixed-widthpatchstreambeanstalkselfECMAScriptInt8Arraycomparerfc4122pathmonorepoimportexportcensorqueueMicrotaskisFloat64ArraytypescripttddestreeprocessinstallerglobalsObject.entriesECMAScript 6fastcloneprotoclassesES2021call-boundObject.fromEntriescss-in-jsequalityInt16Arrayloadingexpressiondataruntimeliveeslintpluginpyyamldependency managerArray.prototype.findLastprototypebannerfantasy-landpostcss-pluginPushemrreducercharacterpostcssECMAScript 5authintrinsicstategesturescss lessformatgetintrinsicchromiumsharedarraybufferkeywaapistylesheetECMAScript 2022argvrfc9562matchfunctionbcryptvisualdeletemkdirsString.prototype.trimrandomhigher-orderexit-codeshamconcatMapcssReactiveX$.extendnpmdateebsttybundlerreactgraphqlprogresstoArrayexecuteprivatejsondotenvmodulesUnderscoreshrinkwrapUint8ClampedArraydom-testing-libraryprotocol-buffersexpressshimsameValueZeroObjectutilspreprocessorlinuxserializationelectronresolveESproxylesscsswritablexhrECMAScript 3Array.prototype.flatserializerstringifierquerystringajves5jscryptoajaxclassnameexecdatastructureAsyncIteratorvariableshardlinksdeepcloneutilitiesclass-validatorzodmkdirYAMLMapbrowserlistRxJSregular-expressioninbundlingmrunodejsremoveJSONimmutabletoolseffect-tsbddtouchJSON-Schemagdprgitignoreponyfilldynamodbnopebinaryes-abstractposeSetirqES2018curlsuperstructnodeObject.getPrototypeOftrimRightendertsflagsrulesESnextReactiveExtensionsObservablesbinarrayshelpersdeep-copyenvtoStringTagtoobjectwrite.gitignoreless cssperformanceArray.prototype.includeseventsbootstrap lessuuidtypesredactglobless mixinspopmotionless.jslruSymbol.toStringTagstructuredClonecontainssymlinksES2020valuesstylingecmascriptreadableindicatorhastermxtermpruneWeakSetfullgetoptpersistentstatelessstableRegExp.prototype.flagsIteratorURLSearchParamscallboundreadablestreamregexpvestECMAScript 2021joiStreamsconstefficientcodesendpointwhatwgasterisksterminalasciiconsoleoperating-systemchildinputArrayBuffercachees-shimscss nestingglaciersignalsubprocessTypeScriptArray.prototype.flattenexitrdsforkpushtostringtagchromeroutingassertstylescss variablefastcopymobilereplaydescriptorinternalmanagerhooksl10nsettings256schemedescriptionnegativebabel-corereact-hookses2017sequence@@toStringTagtoolkitfullwidthprefixtraverseflagquoteschemaURLdeep-clonetelephonemacosvalidationmakeamazonec2flatarraybuffercallbackiteratehashstringES2019helpercallbindfast-deep-copygetOwnPropertyDescriptores2018Int32Arraytacitreact posefilterWeakMapvariables in csspackage managereast-asian-widthes8Object.definePropertytypematchestypedarrayWebSocketcorenested cssdeepcopydescriptorsworkergradients cssobjectfastifyesscheme-validationreduxauthenticationvarsArray.prototype.findLastIndexloadbalancingobjtoReverseddayjsECMAScript 7syntaxerrorcloudwatchfunction.lengthreversecompile lesslibphonenumberignorecompilerinspectinternal slotRegExp#flagsuninstallrangeerrordrageventDispatcherutilspinnerspecFloat32Arraypnpm9has-ownvaluemulti-packagecertificateshttpmoduleproplastsigtermroute53promiseECMAScript 2016TypedArraytranspilerBigUint64ArraywgetdefinePropertyeslint-pluginhasOwnnameCSSjson-schema-validationArray.prototype.flatMapsharedweakmapbytedeepclonesqsworkspace:*queuebufferbyteLengthserializelessdirECMAScript 2019outputimmersimpledbcallprivate datathreepicomatchairbnbautoscalingFunction.prototype.nameidlefetchidentifiersjQueryfile systemlognativeramdaextraRxlintHyBibyteOffsetArrayBuffer.prototype.slicetypanionES3collectionrouteES8positivevalidateletSystem.globalprettyviewObject.istimeconfigurableES2015setcheckstatus-0recursivesafe
5.9.95

4 months ago

5.9.96

4 months ago

5.9.94

4 months ago

5.8.94

4 months ago

5.7.94

5 months ago

4.7.94

5 months ago

4.7.93

5 months ago

3.7.93

5 months ago

3.7.92

5 months ago

3.7.91

5 months ago

3.7.90

5 months ago

3.7.89

5 months ago

3.7.88

5 months ago

3.7.87

5 months ago

3.7.86

5 months ago

3.7.85

5 months ago

3.7.84

5 months ago

3.7.83

5 months ago

3.7.82

5 months ago

3.7.81

5 months ago

3.7.80

5 months ago

3.7.79

5 months ago

3.7.78

5 months ago

3.7.77

5 months ago

3.7.76

5 months ago

3.7.75

5 months ago

3.7.74

5 months ago

3.7.73

5 months ago

3.7.72

5 months ago

3.7.71

5 months ago

3.7.70

5 months ago

3.7.69

5 months ago

3.6.69

5 months ago

3.6.68

5 months ago

3.6.67

6 months ago

3.6.66

6 months ago

3.6.65

6 months ago

3.6.64

6 months ago

3.6.63

6 months ago

3.6.62

6 months ago

3.6.61

6 months ago

3.6.60

6 months ago

3.6.59

6 months ago

3.6.58

6 months ago

2.6.58

6 months ago

2.6.57

6 months ago

2.6.56

6 months ago

2.6.55

6 months ago

2.6.54

6 months ago

2.6.53

6 months ago

2.6.52

6 months ago

2.6.51

6 months ago

2.6.50

6 months ago

2.6.49

6 months ago

2.6.48

6 months ago

2.6.47

6 months ago

2.6.46

6 months ago

2.6.45

6 months ago

2.6.44

6 months ago

2.6.43

6 months ago

2.6.42

6 months ago

2.6.41

6 months ago

2.6.40

6 months ago

2.6.39

6 months ago

2.6.38

7 months ago

2.6.37

7 months ago

2.6.36

7 months ago

2.6.35

7 months ago

2.6.34

7 months ago

2.6.33

7 months ago

2.6.32

7 months ago

2.6.31

7 months ago

2.6.30

7 months ago

2.6.29

7 months ago

2.6.28

7 months ago

2.6.27

7 months ago

2.6.26

7 months ago

2.6.25

7 months ago

2.6.24

7 months ago

2.6.23

7 months ago

2.6.22

7 months ago

2.6.21

7 months ago

2.5.21

7 months ago

2.5.20

7 months ago

2.5.19

7 months ago

2.5.18

7 months ago

2.4.18

7 months ago

2.4.17

7 months ago

2.4.16

7 months ago

2.4.15

7 months ago

2.4.14

7 months ago

2.4.13

7 months ago

2.3.13

7 months ago

1.3.13

7 months ago

1.3.12

8 months ago

1.2.12

8 months ago

1.1.12

8 months ago

1.1.11

8 months ago

1.1.10

8 months ago

1.1.9

8 months ago

1.1.8

8 months ago

1.1.7

8 months ago

1.1.6

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago