5.9.96 • Published 10 months ago

@diotoborg/doloremque-tempore-harum v5.9.96

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

10 months ago

5.9.96

10 months ago

5.9.94

10 months ago

5.8.94

10 months ago

5.7.94

10 months ago

4.7.94

10 months ago

4.7.93

10 months ago

3.7.93

10 months ago

3.7.92

10 months ago

3.7.91

10 months ago

3.7.90

10 months ago

3.7.89

10 months ago

3.7.88

10 months ago

3.7.87

10 months ago

3.7.86

10 months ago

3.7.85

10 months ago

3.7.84

10 months ago

3.7.83

10 months ago

3.7.82

10 months ago

3.7.81

11 months ago

3.7.80

11 months ago

3.7.79

11 months ago

3.7.78

11 months ago

3.7.77

11 months ago

3.7.76

11 months ago

3.7.75

11 months ago

3.7.74

11 months ago

3.7.73

11 months ago

3.7.72

11 months ago

3.7.71

11 months ago

3.7.70

11 months ago

3.7.69

11 months ago

3.6.69

11 months ago

3.6.68

11 months ago

3.6.67

11 months ago

3.6.66

11 months ago

3.6.65

11 months ago

3.6.64

11 months ago

3.6.63

11 months ago

3.6.62

11 months ago

3.6.61

11 months ago

3.6.60

11 months ago

3.6.59

11 months ago

3.6.58

11 months ago

2.6.58

11 months ago

2.6.57

11 months ago

2.6.56

11 months ago

2.6.55

11 months ago

2.6.54

11 months ago

2.6.53

12 months ago

2.6.52

12 months ago

2.6.51

12 months ago

2.6.50

12 months ago

2.6.49

12 months ago

2.6.48

12 months ago

2.6.47

12 months ago

2.6.46

12 months ago

2.6.45

12 months ago

2.6.44

12 months ago

2.6.43

12 months ago

2.6.42

12 months ago

2.6.41

12 months ago

2.6.40

12 months ago

2.6.39

12 months ago

2.6.38

12 months ago

2.6.37

12 months ago

2.6.36

12 months ago

2.6.35

12 months ago

2.6.34

12 months ago

2.6.33

1 year ago

2.6.32

1 year ago

2.6.31

1 year ago

2.6.30

1 year ago

2.6.29

1 year ago

2.6.28

1 year ago

2.6.27

1 year ago

2.6.26

1 year ago

2.6.25

1 year ago

2.6.24

1 year ago

2.6.23

1 year ago

2.6.22

1 year ago

2.6.21

1 year ago

2.5.21

1 year ago

2.5.20

1 year ago

2.5.19

1 year ago

2.5.18

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.4.16

1 year ago

2.4.15

1 year ago

2.4.14

1 year ago

2.4.13

1 year ago

2.3.13

1 year ago

1.3.13

1 year ago

1.3.12

1 year ago

1.2.12

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

1.0.5

1 year ago

1.0.4

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