5.9.96 • Published 12 months ago

@diotoborg/doloremque-tempore-harum v5.9.96

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

12 months ago

5.9.96

12 months ago

5.9.94

12 months ago

5.8.94

1 year ago

5.7.94

1 year ago

4.7.94

1 year ago

4.7.93

1 year ago

3.7.93

1 year ago

3.7.92

1 year ago

3.7.91

1 year ago

3.7.90

1 year ago

3.7.89

1 year ago

3.7.88

1 year ago

3.7.87

1 year ago

3.7.86

1 year ago

3.7.85

1 year ago

3.7.84

1 year ago

3.7.83

1 year ago

3.7.82

1 year ago

3.7.81

1 year ago

3.7.80

1 year ago

3.7.79

1 year ago

3.7.78

1 year ago

3.7.77

1 year ago

3.7.76

1 year ago

3.7.75

1 year ago

3.7.74

1 year ago

3.7.73

1 year ago

3.7.72

1 year ago

3.7.71

1 year ago

3.7.70

1 year ago

3.7.69

1 year ago

3.6.69

1 year ago

3.6.68

1 year ago

3.6.67

1 year ago

3.6.66

1 year ago

3.6.65

1 year ago

3.6.64

1 year ago

3.6.63

1 year ago

3.6.62

1 year ago

3.6.61

1 year ago

3.6.60

1 year ago

3.6.59

1 year ago

3.6.58

1 year ago

2.6.58

1 year ago

2.6.57

1 year ago

2.6.56

1 year ago

2.6.55

1 year ago

2.6.54

1 year ago

2.6.53

1 year ago

2.6.52

1 year ago

2.6.51

1 year ago

2.6.50

1 year ago

2.6.49

1 year ago

2.6.48

1 year ago

2.6.47

1 year ago

2.6.46

1 year ago

2.6.45

1 year ago

2.6.44

1 year ago

2.6.43

1 year ago

2.6.42

1 year ago

2.6.41

1 year ago

2.6.40

1 year ago

2.6.39

1 year ago

2.6.38

1 year ago

2.6.37

1 year ago

2.6.36

1 year ago

2.6.35

1 year ago

2.6.34

1 year 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